cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Saving Direct File link to my Databse

Saving Direct File link to my Databse

Ahmed-rw
New member | Level 2

Hello Dropbox 😄 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.

1 Accepted Solution

Accepted Solutions

Re: Saving Direct File link to my Databse

Greg-DB
Dropboxer

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

View solution in original post

3 Replies 3

Re: Saving Direct File link to my Databse

Greg-DB
Dropboxer

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

View solution in original post

Re: Saving Direct File link to my Databse

Ahmed-rw
New member | Level 2

thank you sir 🙂

Re: Saving Direct File link to my Databse

Tam_1985
New member | Level 2
Okay i see
Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Tam_1985 New member | Level 2
  • User avatar
    Ahmed-rw New member | Level 2
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?