cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you new to Dropbox? Our Newcomers group is the perfect place to learn the basics, find out more 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: 

Get file object from input to upload

Get file object from input to upload

vivise
New member | Level 2

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-javascrip...

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 1

Greg-DB
Dropbox Staff

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?