haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.41k stars 1.55k forks source link

Seafile chunking #2835

Open kbkozlev opened 1 month ago

kbkozlev commented 1 month ago

Hi all I'm running Seafile behind Cloudflare tunnel, unfortunately there is an issue. Cloudflare enforces a max upload of 100mb per request, so larger files cannot be uploaded. I checked the forum, and it said to set ENABLE_RESUMABLE_FILEUPLOAD = True in the seahub_settings.py, however even then the upload fails.

Is there a way to set the size of the chunks that seafile uses?

killing commented 1 month ago

Do you mean uploading from web browser fails? We by default upload the files in chunks of 1MB. Please check the web browser console for network errors.

kbkozlev commented 1 month ago

Uploading from the browser works, but the moment I try to upload something from the Android App that is larger than 100 mb. It goes the whole process of uploading and then fails at the end with a “Network Error” message. I have tried a mix of files small, large and all together. Everything that is less than 100mb is OK, and all the large ones fail.

killing commented 3 weeks ago

Have you upgraded to the latest version of Android app?

kbkozlev commented 3 weeks ago

Yes I'm running the latest version 3.0.4

killing commented 3 weeks ago

Well that should be due the Cloudflare restriction. Currently there is no way to change the chunk size for Android.