Comments
-
When returning files via shared links with the dl=1 parameter, the Dropbox web servers issue a redirect to a URL that does end in 'file', with the actual file name included in the 'content-disposition' response header. I just tried this and confirmed it is working as expected. Clients should automatically follow that…
-
No, unfortunately the Dropbox API does not offer thumbnail links, but I'll pass this along as a feature request. Also the documentation at https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail is correct. Note that this is a "Content-download" style endpoint. The "ENDPOINT FORMAT" section…
-
Can you add extra logging or work through your code in a debugger to determine where the discrepancy is taking place? By the way, if you use the "Reply" option (not "Quick Reply), the forum's "Rich Text" editor has a code button you can use to get code formatting. The button has a label like "</>".
-
I see you're calling listFolder, but aren't calling listFolderContinue. You aren't always guaranteed to get all entries returned by calling just listFolder. You need to check the result, and if DBFILESListFolderResult.hasMore is true, call back to listFolderContinue to get more results (and the same for…
-
@"Rishi" First, for reference, does the redirect work in the Android sample app itself for you? If so, can you provide your own test project that reproduces this issue so we can reproduce it here and investigate? Thanks in advance!
-
The offset value works the same way for files_upload_session_finish as it does for the other calls. It should match how much data you've uploaded in the upload session so far. It sounds like you may have a bug where you're uploading more data than expected. I recommend adding extra logging or working through your code in a…
-
Yes, that's expected. The property values won't be returned in the metadata from the upload itself. A successful response as you're receiving does indicate that is was successfully submitted though. You need to call and explicitly request the property values, as you have done. And yes, the template ID for a given template…
-
@"Yashik" It looks like you had some trouble with the forum's spam filter and so made this extra thread. I'll close this one and resume the conversation on your original thread so we can keep that in one place: https://www.dropboxforum.com/t5/General-Discussion/Dropbox-v2-upload-cursor-offset-confusion/m-p/288017 And yes,…
-
I don't have an update on this yet. I'll follow up here once I do.
-
This code is working for me. Do you get any error or output in the console? Can you provide a more complete sample page for this issue? It sounds like you may have the button hooked up to a different event, e.g., submitting a form, or something to that effect, causing the refresh.
-
[Cross-linking for reference: https://stackoverflow.com/questions/51663916/ios-avplayer-not-playing-all-remote-files ] I see you've already received some help from someone on StackOverflow, and have determined that the issue is likely with the file itself. We can't offer help with the file or AVPlayer themselves…
-
This error message is indicating that you're supply a request body with this API call, but the API expects the request body to be empty. That's expected per the documentation for /2/files/get_preview, which indicates that it's a "Content-download" style endpoint. The documentation there covers this in more detail, but in…
-
In the screenshot of the web site, I see you're looking at a folder at "/neges". It sounds like that's probably just a folder you created manually. For an app with the "app folder" permission, like the app you have registered, per your second screenshot, Dropbox automatically makes the special app folder for you. By…
-
It looks like the issue is that you're using a different field name when creating the template and then when trying to apply it later. I.e.: let template = FileProperties.PropertyFieldTemplate(name: "FileTemplate", description_: "File's Custom Properties Here", type: .string_) But then: let field =…
-
@"Rishi" I believe they were referring to setting 'taskAffinity' and/or 'excludeFromRecents' for the 'com.dropbox.core.android.AuthActivity' in the app's AndroidManifest.xml, e.g., here in the sample: https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/AndroidManifest.xml#L26 The Android…
-
@"david48" Exactly how this works will depend on your particular scenario. For instance, for a locally running native mobile client, it can use a custom local URL scheme in its redirect URI. The app would register for that local URL scheme, so the redirect would be sent directly to the app (i.e., not a remote web server),…
-
You're getting a NetworkOnMainThreadException, which means you're trying to make a network call on the main thread, which isn't allowed on Android. (The Dropbox API methods each make a network call to the Dropbox API servers.) You should make this call on a background thread instead. This isn't specific to Dropbox, so…
-
That error is indicating that the request body couldn't be parsed as JSON. This endpoint doesn't have any required parameters, so you can just specify: CURLOPT_POSTFIELDS => "null",
-
Apologies for the bother. It looks like that thread was incorrectly archived. It should be accessible again now.
-
[Cross-linking for reference: https://github.com/dropbox/SwiftyDropbox/issues/227 ] It sounds like you already found this thread which should offer some insight: https://www.dropboxforum.com/t5/API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192322#M24501 Let me know if you're still having trouble. By the way, you…
-
I see that you're getting a response with a 400 status code, which means that the call failed. The response body should contain a more useful error message, so you should print it out. You're setting 'CURLOPT_NOBODY => true' though, so curl won't return the body. Disable that to retrieve the body.
-
It sounds like you're referring to the 'does_not_fit_template' error, which is documented as: "One or more of the supplied property fields does not conform to the template specifications." That means that the property fields that you're attempting to set for that file do not match the template you are using. You'll need to…
-
That behavior is correct. The `media_info` isn't available in FilesFileMetadata in FilesSearchMatch, as retrieved by filesSearch, unfortunately, but I'll pass this along as a feature request. If you want the `media_info`, you should retrieve the metadata using filesGetMetadata or filesListFolder/filesListFolderContinue,…
-
That is the raw data for the thumbnail itself. Exactly what you do with that is up to you. For example, you may wish to save that somewhere, or display it to the user, etc.
-
A "team" refers to a Dropbox Business level collection of accounts. If you're interested, you can find more information here: https://www.dropbox.com/business Note that you don't need a Dropbox Business team to use the file properties functionality on the Dropbox API though:…
-
That error message indicates that the app is at its user limit and can't be linked to more accounts. The solution to that is to increase the limit or apply for production: https://www.dropbox.com/developers/reference/developer-guide#production-approval The first screenshot you provided doesn't look like an app at its user…
-
It sounds like you're looking at the old landing page for the Python SDK for API v1, which is now retired. (There's a deprecation warning at the top of that page with a link to more information.) You can find the current page for the current version of the Python SDK here.
-
A 'path/conflict/file' error indicates that the upload failed because there is already a file at the specified path. You should instead specify a different path, or supply a different WriteMode to to files_upload_session_finish in the CommitInfo to automatically handle the conflict.
-
Thanks! We're looking into it.
-
Thanks! We'll keep investigating. I'll let you know if there's anything else that would be helpful.