cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Get file object from input to upload

New member | Level 2
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
Highlighted

Re: Get file object from input to upload

Dropboxer
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

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?