You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Ahmed-rw
6 years agoNew member | Level 2
Saving Direct File link to my Databse
Hello Dropbox :D I was wondering about a specific point. In my databse schema I have a table describing documents in my application. one of the fields specify the url to that docuemnt as I have the physical files stored in Firebase Storage and I have a field pointing the url on that storage. so my question is can i do the same with files aquired by the choose module. I will have my field pointing to the url which in this case is dropboxContent. is this okay ? sorry about the bad english.
Based on your reference to "the choose module", it sounds like you're referring to using the Dropbox Chooser and saving the link to chosen file(s).
The Dropbox Chooser is intended as a way for third party applciations to easily let users select files from their accounts, returning the links for those files to the app. What your app does with those links is up to you.
So, if you want to store those links in the app's database, you can certainly do so. There are some things to keep in mind though:
- "direct" links expire after four hours, so if you need the links to last longer than that, you should use "preview" links, which don't expire by default.
- "preview" links can still be invalidated by the user, e.g., if they revoke the link or delete the file
- Greg-DBDropbox Staff
Based on your reference to "the choose module", it sounds like you're referring to using the Dropbox Chooser and saving the link to chosen file(s).
The Dropbox Chooser is intended as a way for third party applciations to easily let users select files from their accounts, returning the links for those files to the app. What your app does with those links is up to you.
So, if you want to store those links in the app's database, you can certainly do so. There are some things to keep in mind though:
- "direct" links expire after four hours, so if you need the links to last longer than that, you should use "preview" links, which don't expire by default.
- "preview" links can still be invalidated by the user, e.g., if they revoke the link or delete the file
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days 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!