cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to hear from you. What do you use Dropbox for?
Close

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: 
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

Polls
Do you know how to organize your files and folders?
<b>We have created a guide on folder best practice, so you can get organized now <a href="https://www.dropboxforum.com/t5/Business-Tips-tricks/Folder-structure-best-practice/m-p/428456#M39"><u>check it out here</u></a>.</b>

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?