We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
julio_diniz_perdigao
2 years agoExplorer | Level 3
Upload to a specific file id
Hi!
Google Drive has an method that we can create the file ID first, before start upload.
Does Dropbox has somenthing similar?
My point is, to get file metadata, specially file size, af...
Greg-DB
Dropbox Community Moderator
2 years agojulio_diniz_perdigao As Здравко suggested, you don't necessarily need the file ID and can instead monitor for changes. Check out the Detecting Changes Guide for information on how to do so.
If that isn't sufficient for your use case though, you could first upload a placeholder (e.g., a zero byte file, or something else of your choosing) from the back-end to get the file ID for that, and then configure the temporary upload link to overwrite that placeholder file.
- julio_diniz_perdigao2 years agoExplorer | Level 3
Hi Greg-DB !
Good tip! Do you know which process is more faster? I mean, get file metada from a file ID or file path? My guess is the file ID, when have a lot of files.
- Greg-DB2 years ago
Dropbox Community Moderator
julio_diniz_perdigao There's no particular guarantee on whether using a file ID or a file path to retrieve a file's metadata would be faster. (There may also be other variables that would affect that anyway.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!