Cannot upload files larger than 100MB when using Cloudflare
System Info
- PHP Version: 8.3.2
- XBackBone Version: 3.7.0
- Webserver: Nginx
- Database backend: SQLite
Describe the bug When using cloudflare for your site, when uploading files larger than 100MB, the file will fail to upload (even though XBackBone thinks it was successful), resulting in a http 413 error from cloudflare origin. This is because on the free cloudflare plan, the plan will limit the max file size you can upload in a single request.
To Reproduce Steps to reproduce the behavior:
- Go to the upload page
- Choose a file and upload
- Upon finishing, the file fails to upload
Expected behavior The file gets uploaded to XBackBone, and shows in the home page, but does not. However, this is easy enough to fix by chunking the upload into something like 50MB parts or similar (see related article: https://community.cloudflare.com/t/large-file-upload-issue/493514). I think an option of some kind of toggle to use chunking will be beneficial for those that do need it and those that don't. I will see about adding chunking this weekend if I can. Thanks!
Screenshots
Logs N\A