I am completely new to API development having only limited coding experience. My goal is to create a form that allows the user to upload a file to a Dropbox file request folder. If Dropbox file request allowed you to enter text along with uploading a file, then I wouldn't have this need.
How do I tell the form where to upload the file? Also wondering the best way to store the data captured in the form.
The goal is to have users upload jpgs via a form where those jpg files would be stored in my Dropbox along with a text file to correspond with the jpg.
My coding knowledge is at a beginner stage. Having never used the API, I think this is a bit advanced for my current state of knowledge. Even reading the documentation assumes a level of understanding to know what you're reading.
one thing that i am confused about is that we need to upload file to our server first and then upload to dropbox folder, in case we are using a form and user provides a file via file input using file browse dialog. Then first we will upload the file to our server and then upload to dropbox if i am not wrong about it. there isnt any other way to bypass uploading to our server frist.
For instance, you can make the /2/files/upload call directly from the browser, as long as you have the access token client-side.
Or, even without having the access token client-side, you can have the server call /2/files/get_temporary_upload_link to get a temporary upload link, and then send that link to the client. The client can then upload directly to Dropbox via that link.
Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.
Not the right discussion for you? Find out what else our Community has to say about API Support.
Or, search our Help Center for even more.