cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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

Greg-DB
Dropbox Staff
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.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?