Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
It has been discussed before that the JavaScript-based Dropbox saver by spec does not resolve with the path of the saved files. However, we have a use case that requires this (getting the path to a saved resource).
Now we could certainly hack together something among the following files:
This certainly isn't bandwidth or privacy-friendly, and we sure don't want neither Dropbox nor our users to get suspicious about an activity log that this may create. Can you perhaps recommend an alternative approach to brute-forcing a file match?
Edit
I've been checking out http/documentation#files-search, which is a step forward to getting this done more efficiently.
solve your problem.
I don't *have* a problem, I'm looking for a more sensible approach to a possible use case, preferably from people with some direct experience in the matter.
That said, I sincerely, and respectfully doubt a generic support firm from India, and one advertising itself on forums, would be of any help to us.
@JohnWeisz Thanks for writing this up! I'm sending this along as a feature request to have the Saver return the file path, though unfortunately I can't promise if or when that would be implemented.
I'm afraid I also don't have a great workaround to offer. The search method you mentioned may work for you, as you mentioned. Note that the resulting file name can differ though, e.g., adding a "(1), etc." if there was already a file with the same name in the folder.
Alternatively you could try using /2/files/list_folder/get_latest_cursor before initiating the save operation, and then calling /2/files/list_folder/continue after it finishes. This isn't perfect as it may pick up other changes, but it would be a more efficient way to narrow down the entries and find the newly saved file.
(Also, I imagine there's a reason you want to use the Saver, but it's worth mentioning that if you have API access to the account anyway, you can forgo using the Saver itself to begin with, and upload the file data using /2/files/upload directly.)
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!