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 Emma uses to-do lists to get it all done 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: 

Dropbox direct upload files from browser

Dropbox direct upload files from browser

emre
Explorer | Level 4

I use php sdk

Bir dosya yükleme formum var

Normalde, dosya ilk önce sunucuya yüklenir ve daha sonra dropbox'a yüklenir

Ancak, bu, büyük dosyalarda zaman kaybı ve kaynak tüketimine neden olur

Dosyayı tarayıcıdan doğrudan yüklemenin bir yolu var mı?

e.g. 

 

{

<form action="myFile.php" method="post" enctype="multipart/form-data">

<input type="file" name="file" >
<input type="submit" >
</form>

 

}

1 Reply 1

Re: Dropbox direct upload files from browser

Greg-DB
Dropboxer
For a server-side integration, such as when using PHP, it would be inefficient to upload to your server first and then to the Dropbox API.

You can avoid this by writing the Dropbox API functionality to run client-side instead. For example, you can use the API v2 JavaScript SDK:

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

Note that you should only do this if you are uploading to the user's own Dropbox account. Writing the integration to run client-side necessarily exposes the access token to the user. If you are instead trying to always upload to a single Dropbox account, this would be a security issue in that you'd be exposing the access token to the user.
Who's talking

Top contributors to this post

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