Comments
-
There isn't a good way to do this in API v2 yet, but I believe we do have some potential solutions planned for this. I'll be sure to pass this along as a feature request though. As a workaround, I would recommend continuing to use v1 /media as like you have been.
-
Note, for anyone following along who may be having the same problem, another one of our developer advocates offered an answer on the StackOverflow question.
-
Where are you stuck exactly? Are you having trouble with the Dropbox portion of this? If so, what error are you getting? The matter of building a GUI around it is out of scope for Dropbox API support so I'm afraid this wouldn't be a good place for help with that aspect of your project.
-
Hi Fernando, downloading would look like: curl "https://content.dropboxapi.com/2/files/download?authorization=Bearer%20ACCESS_TOKEN_HERE&arg=%7B%22path%22%3A%20%22%2Ftest.txt%22%7D"
-
Hi Alexander, yes, you can pass the arguments on the URL. You cited the right documentation, but your implementation isn't quite right. You should put all of the arguments as JSON in a URL parameter actually named "arg". Likewise, you need to use the "authorization" parameter to send up the access token. To make the arg…
-
Thanks for the report! This is a known issue, though I unfortunately don't have a timeline for a fix.
-
This is different from the code in your first post, but in both cases you're just using the first element in the files array (that is, files[0]). To access all of the files, iterate through the files array.
-
When the user finishes using the Chooser, your success callback method should be called. Is it getting called for you? If so, what does the files variable contain? In either case, adding something like console.log(files) in the success callback may be a good first step in debugging this.
-
For larger files, you should use chunked uploading. It looks like you're using the Java SDK, so you can use the startUploadFile method, which will decide which kind of uploading to use for you:…
-
No, we'll consider it a feature request though.
-
The id field has been changed to required, so every FileMetadata/FolderMetadata object will have it now.
-
Right now, just due to various technical details on the backend, we can't guarantee that every single file will have an ID, though it should be very rare for a file not to have one. We'll be working on improving this though towards the goal of making this guaranteed.
-
Hi Annabel, the problem in this thread was about using the Dropbox developer platform and was resolved in the StackOverflow post. If you're a developer and have a different question, you should post a new thread with the details in the API Development forum. If you're not a developer, you'd be better served in the Issues &…
-
[Cross-linking for reference: https://stackoverflow.com/questions/33671366/dropbox-api-searchin-files-and-content ]
-
The /delta endpoint on API v1 and the /list_folder endpoints on API v2 allow your app to get the full current state of the Dropbox account, and then efficiently stay up to date with further changes. They do not offer information about previous revisions. If you do need full revision information, you will need to use the…
-
Using a Dropbox Business API app with the "Team Member File Access" permission sounds like the right way to do this. To get non-file events, you can use the /1/team/log/get_events endpoint, as you mentioned. To get file events, you will need to use the user-specific methods. In the Java SDK, using the asMember method to…
-
Hi Anchal, API v2 doesn't support the file type permission, but I'll be sure to pass this along as a feature request.
-
It's not currently possible to switch the permission on an existing app. If you want to switch the permission for an app in development mode, you can do so by deleting the current app and registering another with the desired permission. Deleting an app in development mode frees up the name so you can register it again.…
-
You're still using an empty DropboxAPI.Entry, like Steve mentioned before. To see how this works, I recommend just starting with a simple path. For example, try this to get started: response = mDBApi.putFile("/hello.txt", inputStream, file.length(), null, null);
-
Can you clarify what you mean when you say you can't provide the path? The path should be the path in the Dropbox account where you want to upload the file. For example, to upload a file "test.txt" into a folder named "Documents", you would use the path "/Documents/test.txt"
-
There isn't currently an interface for checking the desktop client like this, but I'll be sure to pass this along as a feature request.
-
Thanks for the feedback! I don't know off hand why append and finish are different, but I'll be sure to pass this along.
-
Each call to filesUploadSessionStart, filesUploadSessionAppend, or filesUploadSessionFinish uploads all of the data you give to it. So in your case, if you supply 1 GB, it will attempt to upload all of that data at once, before response is called. That will likely fail though, so you should instead only upload a piece at a…
-
I don't think we have a full sample using that published, but here's a very simple example I just put together: (apologies for the atrocious code formatting on the forum) // Write a file to the local documents directory let text = "Hello world. Usually something much longer here." let filename = "working-draft.txt" let…
-
Hi Daniel, we have a new release of the iOS Core SDK that should enable you to build an archive: https://www.dropbox.com/developers-v1/core/sdks/ios If you want, give that a try and let me know if that does or doesn't work for you.
-
Searching for "Mac" or "OSX" in Finder yields: DBAuthHelperOSX.h DBAuthHelperOSX.m DBKeychain-OSX.m DBRestClient+OSX.h DBRestClient+OSX.m DropboxOSX-Info.plist DropboxOSX-Prefix.pch DropboxOSX.h MPOAuthCredentiaIConcreteStore+KeychainAdditionsMac.m So I'd recommend just removing those instead of trying to add just iOS…
-
I imagine it may depend a bit on how the project is set up, but as I recall the steps I've used in the past are: 1. Remove DropboxSDK.framework from your project but right clicking it and choosing "Delete", and choose to delete files. 2. If you're not building for OS X, delete all of the files that reference "Mac" or "OS…
-
[Moved to the API Development forum] Hi Daniel, it sounds like you're using the iOS Core SDK. I'll pass this along as a feature request for an updated version with bitcode enabled, but one workaround is to add the source directly to your app, instead of adding the built framework. There's an existing thread about this with…
-
API v2 now offers /save_url: https://www.dropbox.com/developers/documentation/http/documentation#files-save_url https://www.dropbox.com/developers/documentation/http/documentation#files-save_url-check_job_status
-
No update on this quite yet!