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: 

DropboxIOException

DropboxIOException

Imas
New member | Level 2

I have a problem about upload file video to dropbox, I used API for android, When I upload video >300mb, my application throw exception:

com.dropbox.client2.exception.DropboxIOException: org.apache.http.client.ClientProtocolException
at com.dropbox.client2.RESTUtility.execute(RESTUtility.java:424)
at com.dropbox.client2.DropboxAPI$BasicUploadRequest.upload(DropboxAPI.java:1280)

Please help me to find cause?

My code upload file:

mApi.putFileOverwriteRequest(mPath, fis,
file.length(), new ProgressListener() {

 

1 Reply 1

Re: DropboxIOException

Greg-DB
Dropboxer

That method doesn't support uploading large files. For large files, you'll need to use "chunked uploading" a.k.a. "upload sessions" instead.

 

Also, the SDK you're using is for API v1, which is deprecated and being retired soon:

 

https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/

 

You should use the official Dropbox API v2 Java SDK instead:

 

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

 

There's an example of uploading large files using that here:

 

https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/upload-file/src/main/java/com/dropb...

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

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