XBackBone icon indicating copy to clipboard operation
XBackBone copied to clipboard

Error can't Upload Media

Open Rakete2510 opened this issue 1 year ago • 5 comments

System Info

  • PHP Version: 8.2.12
  • XBackBone Version: v.3.7.0
  • Webserver: Apache v. 2.4.0
  • Database backend: SQLlite

Describe the bug I cannot upload files larger than 1gb. Then the timeout error occurs

To Reproduce Steps to reproduce the behavior:

  1. Upload a File which is bigger then 1gb.
  2. Wait time
  3. show in the Console
  4. at about 45% the Error comes.

Expected behavior The file is uploaded and I can share it

Additional information: XBackBone is hosted on a Windows PC with xampp. which is behind a Cloudflare Zero Trust. (Cloudflare already has the timeout set to 10 minutes)

Logs XBackBone and/or webserver logs. share.fsfpd.de-1717889325853.log XBackBone Log: log-2024-06-09.txt

Rakete2510 avatar Jun 08 '24 23:06 Rakete2510

*The PHP limits have already been set to 3gb, the web server has been allocated 4gb of memory and there is still over 100gb of free disk space.

Rakete2510 avatar Jun 08 '24 23:06 Rakete2510

https://github.com/sergix44/XBackBone/issues/524#issuecomment-2116163856

Manriel avatar Jun 18 '24 01:06 Manriel

#524 (comment)

Is high enough

Rakete2510 avatar Jul 02 '24 15:07 Rakete2510

HI. I have a problem when uploading a image. Using Apache2 and PHP 8.2 On apache error logs, I got this error:

tail -f /var/log/apache2/xbackbone-error.log | grep "error"
[Thu Nov 06 10:08:12.702531 2025] [proxy_fcgi:error] [pid 1920503:tid 1920503] [client 190.42.86.165:16839] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "extension" in /var/www/xbackbone/app/Controllers/UploadController.php on line 201', referer: https://xbackbone.sybtesting.com/upload

What can I do ? Thanks.

sergiodevelop78 avatar Nov 06 '25 15:11 sergiodevelop78

HI. I have a problem when uploading a image. Using Apache2 and PHP 8.2 On apache error logs, I got this error:

tail -f /var/log/apache2/xbackbone-error.log | grep "error"
[Thu Nov 06 10:08:12.702531 2025] [proxy_fcgi:error] [pid 1920503:tid 1920503] [client 190.42.86.165:16839] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "extension" in /var/www/xbackbone/app/Controllers/UploadController.php on line 201', referer: https://xbackbone.sybtesting.com/upload

What can I do ? Thanks.

I found the solution for my case:

The storage/ folder It only had permissions for root:root. I changed it to www-data:www-data, and now it works.

sergiodevelop78 avatar Nov 06 '25 15:11 sergiodevelop78