We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
JohnWeisz
8 years agoExplorer | Level 4
Acquire save path from Dropbox saver
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 s...
Greg-DB
8 years agoDropbox Staff
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.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 2 years agoIf you need more help you can view your support options (expected response time for an email or 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!