cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Ross uses Dropbox to answer some new house questions 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

Re: Get file object from input to upload

Greg-DB
Dropboxer

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

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?