jakajancar / DropboxUploader

MIT License
203 stars 114 forks source link

Dropbox filesize limit #43

Closed Damin00u closed 9 years ago

Damin00u commented 10 years ago

According to Dropbox Page, filesize limit through the website is set to 10Gb. https://www.dropbox.com/help/5/en

Last filesize limit was 300Mb

When I tried to change the dropbox configuration to 10Gb, I also get the upload failed error message const DROPBOX_UPLOAD_LIMIT_IN_BYTES = 10737418240; Any idea about this issue ?

Reference: #9

hakre commented 10 years ago

Nice find. If you did run into the limit recently, please edit the value in your file and let me know if it did work for you now. Would be interesting to know.

For the change, it might require some tests for PHP under different installations and operating systems due to integer limits. But we can check that then.

Damin00u commented 10 years ago

I still get the upload failed error message. I tried on a Linux x86_64-redhat-linux-gnu with php v5.3.3

dexigner commented 10 years ago

Same here, changing the limit didn't work. Switched to official api and I'm uploading a +70GB file weekly.

hakre commented 10 years ago

@dexigner: You might confuse the issue, the upload limit is 10Gb not +70Gb. So Dropbox_Uploader could never reach +70Gb. The problem that @Damin00u brought up is, that internally in the class the limit is hardcoded to 300Mb, which was the old limit to upload via the dropbox website (not API).

@Damin00u Thanks for the feedback. You need this hardly? Should I look further into it? I don't need it atm, so I don't push so much forward with this and as your test reveals it's not possible by changing the coded limit, right?

Damin00u commented 10 years ago

@hakre yes it's not working changing the limit in the script, my upload is 317mb file. I'll switch to the official API. I'll let you know if i find any solution

hakre commented 9 years ago

@Damin00u: Could you find out more on this issue?

Damin00u commented 9 years ago

@hakre Sorry I'm pretty busy these times, i'm using Dropbox sdk for now but I didn't check what was wrong with DropboxUploader

hakre commented 9 years ago

@Damin00u: Thank you for your quick feedback. I'll close this issue for now. The DropboxUploader class has a filesize limit of 314 573 MB (314 572 800 bytes), this is the standard mode of operation so far, https://github.com/jakajancar/DropboxUploader/blob/master/DropboxUploader.php#L39