We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
vivise
8 years agoNew member | Level 2
Get file object from input to upload
Hello,
I'm trying to upload a file following these steps: https://blogs.dropbox.com/developers/2016/03/how-formio-uses-dropbox-as-a-file-backend-for-javascript-apps/
And I don't know how I can get the file from my HTML:
<input id="inputFile" type="file" name="inputFile" accept="*">
Into my javascript like a file object selected in the file widget
1 Reply
- Greg-DB8 years ago
Dropbox Community Moderator
There's a full example here of using the official Dropbox API v2 JavaScript SDK to upload a file from an input element that should be helpful:
https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/upload/index.html
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!