Forum Discussion

gangnamBoy's avatar
gangnamBoy
Explorer | Level 3
9 years ago

file upload from html form via ajax

Hi,

 

I want to upload selected files from my html multi form via ajax to my dropbox

Folders!

I can upload files from my local Storage from my ressource folder, but I need to upload

the files I selected in my HTML Form. I send a FormData via Ajax and then get for each File

a HttpServerRequest( a vertx framework object). I think I need the certain input Streams 

for my selected files, but I dont know how.

 

Can anyone tell me how to deal with this?

 

thx

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    The Dropbox API does allow you to upload files to Dropbox accounts, but it's not designed to work directly from HTML forms.

    You can upload files either from the client (e.g., in the browser via JavaScript) or server-side.

    We recommend using one of the official SDKs, if possible:

    https://www.dropbox.com/developers/documentation

    For example, to upload directly from the browser, you would use the JavaScript SDK:

    https://github.com/dropbox/dropbox-sdk-js

    Or, you can upload the data to your server first, and upload it from there to the Dropbox API.

    In any case, each of the SDKs has a tutorial for getting started, so I recommend working through those.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!