dropbox-api

iOS Dropbox SDK - Cannot upload or get metadata

雨燕双飞 提交于 2019-11-28 11:22:50
问题 This app used to work properly, but now I cannot upload a file or get metadata. Whenever I try to upload, I'll get File upload failed with error: Error Domain=dropbox.com Code=401 "The operation couldn’t be completed. (dropbox.com error 401.)" But when trying to get metadata I'll get Error loading metadata: Error Domain=dropbox.com Code=403 "The operation couldn’t be completed. (dropbox.com error 403.)" I've been trying to re-authenticate, but there seems to be no difference after I execute

Rendering react component after api response

别说谁变了你拦得住时间么 提交于 2019-11-28 08:29:40
I have a react component that I wish to populate with images using the Dropbox api. The api part works fine, but the component is rendered before the data comes through & so the array is empty. How can I delay the rendering of the component until it has the data it needs? var fileList = []; var images = []; var imageSource = []; class Foo extends React.Component { render(){ dbx.filesListFolder({path: ''}) .then(function(response) { fileList=response.entries; for(var i=0; i<fileList.length; i++){ imageSource.push(fileList[0].path_lower); } console.log(imageSource); }) for(var a=0; a<imageSource

Using Dropbox API to upload a file with Android

混江龙づ霸主 提交于 2019-11-28 06:26:13
How can I upload a File (graphic, audio and video file) with Android using the Dropbox API to Dropbox? I followed the tutorial on the Dropbox SDK Android page and could get the sample to work. But now instead of a String I want to upload an actual File object and am struggling. The sample code works without any problems and looks like this: String fileContents = "Hello World!"; ByteArrayInputStream inputStream = new ByteArrayInputStream(fileContents.getBytes()); try { Entry newEntry = mDBApi.putFile("/testing_123456.txt", inputStream, fileContents.length(), null, null); } catch

Trying To Upload To Dropbox: NetworkOnMainThreadException?

£可爱£侵袭症+ 提交于 2019-11-28 02:06:04
I have been fighting for like 6 hours with this now. I have followed Dropbox's "tutorials" (if they can be called that, because they are awfully poor), played with the DBRoulette example, and done tons of stuff to get my app working. My app can Authenticate with no problems. But I can't upload anything despite doing exactly what the tutorial is doing: This is the little snippet of code I have (this is to save a created note on the phone itself and then upload to Dropbox): saveBtn.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { try { //Create the directory

Dropbox Sync API - Unsatisfied Link Error

时光怂恿深爱的人放手 提交于 2019-11-28 01:02:32
I am trying to implement DropboxSync API in my existing Android Application. I have downloaded the DropboxSync API and copied all the libs in my Application's lib folder. I have also pointed the Native Library location to the libs folder where libDropboxSync.so is located. Manifest.xml .... <!-- Dropbox Activities --> <activity android:name="com.dropbox.sync.android.DbxAuthActivity" /> <activity android:name="com.dropbox.client2.android.AuthActivity" android:launchMode="singleTask" > <intent-filter> <data android:scheme="db-intentionally-hidden-app-key" /> <action android:name="android.intent

Data syncing with DropBox API and iOS

北慕城南 提交于 2019-11-27 19:33:15
I have an iOS app which stores data in the local directory. I'd like to be able to sync this data between multiple devices running my app. Currently this is using core data, but I'd expect to have to change to some text-based file storage system to make syncing easier. I was expecting the DropBox API would make this nice and easy, and that I could tell the API to simply sync the contents of my data folder on startup/save. However it seems the DropBox API is nothing more than a glorified way of uploading and downloading files. Am I wrong on this assumption? Can the DropBox API actually make it

Allow Dropbox API to access my account on user's device

故事扮演 提交于 2019-11-27 18:21:48
问题 As a mobile developer, I'm looking for a solution that allows users of my application to download multiple .zip files that will add a "modular" feel to my application. I've used the Dropbox API in another app to allow users to backup items to their account, but now I need the user to access my account. Is there a way to authenticate the Dropbox session to my account automatically, or just connect to my Public folder without the user even noticing? Followup Question What are the security

Android Dropbox API file download

纵然是瞬间 提交于 2019-11-27 17:20:52
问题 I am currently working on an android app that is to support the android dropbox api. I have got it working so that it sends a file from the android sd card to a dropbox folder. I then later on need to be able to download this file and save it to the phone sd card again. How can I download the file from Dropbox and save it to the device, there is very little to no documentation about the android api. Thanks for any help you can provide. 回答1: private boolean downloadDropboxFile(String dbPath,

Check dropbox progress on large files

随声附和 提交于 2019-11-27 08:26:29
问题 How to check dropbox progress on large files? I'm trying to upload a 1.66 gb file to dropbox using core-api and Java. It is taking an extremely long time, (nearly 30 min) and I want to find the progress of the upload. This is my code for uploading: DbxEntry.File uploadedFile = client.uploadFile("/BIGFILE.zip", DbxWriteMode.add(), finalInputFile.length(), inputStream); 回答1: Perhaps it can be achieved by wrapping the InputStream in a ProgressMonitorInputStream. But make sure you do not block

Trying To Upload To Dropbox: NetworkOnMainThreadException?

只愿长相守 提交于 2019-11-27 04:52:02
问题 I have been fighting for like 6 hours with this now. I have followed Dropbox's "tutorials" (if they can be called that, because they are awfully poor), played with the DBRoulette example, and done tons of stuff to get my app working. My app can Authenticate with no problems. But I can't upload anything despite doing exactly what the tutorial is doing: This is the little snippet of code I have (this is to save a created note on the phone itself and then upload to Dropbox): saveBtn