cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We recently received a question asking for advice on how to set up a Dropbox account for an elderly family member. This prompted us to think about the different ways we can make Dropbox more accessible in general, learn about it and add your tips right over 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: 
1
Ask
2
Reply and help

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?