We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
C. Logan
9 years agoExplorer | Level 3
Uploading big file using Objective-C API V2 very SLOW...
Hello, recently our app updates the Dropbox related code from API V1 to API V2. Usually we need to transfer files to Dropbox, it is OK for small files, but for video files of size about 1.5 GB th...
C. Logan
9 years agoExplorer | Level 3
Remark: File size can also be obtained through following code instead of using FCFileManager:
NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:path error:NULL];
fileSize = [attributes fileSize];
Greg-DB
Dropbox Community Moderator
9 years agoThanks! That's helpful
A few notes:
- I misunderstood what was being logged in your original post, and testing the code I can confirm the issue isn't the chunk size being 32768. That's the progress callback is showing incremental progress within each single chunk upload call. Your chunk size is working at 5 MB.
- In your latest code though, note that the comment is wrong. The actual code sets a 5 MB chunk size, but the comment indicates 100 MB.
- Testing this code, I have a better idea of where the overhead is. We're looking into it and I'll follow up here once I have more information.
- C. Logan9 years agoExplorer | Level 3
Thanks for the reply!
The comment is just for testing different value of chunk size. I have tested 5 MB and 100 MB, but the result is the same.
If you have tested the upload using the code I provided, did you get the same result? I mean, is the upload blocked/stopped or canceled after a few seconds?
It would be great if you could help us out from the problem described above.
Hope to hear from you soon when you have more information about how to correctly use the API V2 and get rid of the problem.
- Greg-DB9 years ago
Dropbox Community Moderator
I was able to reproduce the slow uploads, due to what appears to be a performance regression on our side. I wasn't able to reproduce exactly the same error you're getting in some cases, but I believe these are both related to the issue we found. We're looking into it. - Pooja_S9 years agoNew member | Level 2
Hi Greg,
I am also facing the same issue using API V2. File uplaod seems to be very slow. I have tried with 1.5 Gb file with chunk size 4MB. It is going on more than 6 hrs.
Good to hear your team is already looking into it. Looking forward for the solution.
Thanks,
Pooja
- mikewu12119 years agoNew member | Level 2
Hi,
Any update?
- Greg-DB9 years ago
Dropbox Community Moderator
The team has improved this somewhat, but is still working on bringing this back down more. - Bmcdonald19 years agoNew member | Level 2We are having the same slowness issues on upload. On create folder API it is taking 10 seconds. In our product we transfer whole directory trees. Transferring 100 folders takes 100 * 10 seconds to create the folders. And we get rate limited on 90% of the requests.
- Greg-DB9 years ago
Dropbox Community Moderator
Issues affecting create_folder would be different than the upload_session performance issues on this thread.
I'm not seeing the issue with create_folder you reported myself though. I see you also opened a ticket, so we'll look into it and follow up with you there specifically as it sounds like that may be account-specific. - Greg-DB9 years ago
Dropbox Community Moderator
The team has finished some further work on this, and is reporting the performance should be back to about previous levels. There is certainly still room left for improvement, and the team has an open feature request to improve performance in general, but I don't have a timeline for if/when further improvements would be implemented. - drowles9 years agoNew member | Level 2
Hi - I'm trying to upload some files and it's taking FOREVER. I've been at this for a week. Right now - I have 3 files left that total 24 Gigs....and it SAYS that it will take 16 hours (or it says 24 hours, or 3 days, or more.)
At a 3.7 MBPS rate - I should be able to upload 22 Megs per minute - or 2.2 Gigs per hour, I think - which means this should take me 12 hours...now it says 17 hours....am I wrong in this assumption? Thanks.
- Greg-DB9 years ago
Dropbox Community Moderator
drowles It sounds like you're referring to using the Dropbox desktop client. This thread was about using a particular programmatic interface, not the Dropbox desktop client. For help with the desktop client, please post in the "Desktop app issues" forum, or contact support.
- drowles9 years agoNew member | Level 2
WIll do - thanks much.
- DS68 years agoExplorer | Level 4
I am having the same trouble of extemely slow upload speeds, no matter I set chunk size to 5 MB or 100 MB. It's only 191 MB file I am uploading. Please help, there is no official iOS sample code in Objective C or Swift though. Progress callbacks always arrive every 32 KB.
- DS68 years agoExplorer | Level 4Also, many a times upload simply hangs without throwing any error. Setting large block size to 100 MB causes such problems more often.
- Greg-DB8 years ago
Dropbox Community Moderator
DS6 Please open a new thread with the details of your issue, e.g., the relevant code, etc. so we can help you specifically without spamming the other people on this old thread. Thanks!
About 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!