-
Notifications
You must be signed in to change notification settings - Fork 901
Description
Steps to reproduce
I edited the default sizelimit = 10485760 into config.php to allow a file of 59 MB
I uploaded and sent a MP$ file of 59 MB
What happens
After a short upload time I see an error:
What should happen
The file should be upload successfully with the relative link
Additional information
Server error:
Got error 'PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 80355920 bytes) in Unknown on line 0'
Basic information
I prefer not sharing the URL in public
Centos 7
I'm using Apache 2.4, PHP 7.4 and during the upload I checked the CPU and RAM usage and was never at 100 % but much lower.
Consider also on the same server I tried to attach the same file in another PHP app (an help desk app) and the file was attached without errors.
Browser:
Firefox 94.0.1
PrivateBin version:
1.3.5
I can reproduce this issue on https://privatebin.net: Yes / No
No because attachments are not allowed.
Another possible issue is that no alert message alert user if the attachment exceed the max size set in the config file.
Before upload maybe a check should check attachment size and print an error if the size is out of the allowed bytes set in the config file.