You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
I tried to upload many files and it worked perfectly but when I tried to upload like more that 50 pictures I received 500 internal server error
these are the configurations I used :
the error occured only when $config['xss_clean'] is set to TRUE
I tracked the code until I found that in the method do_xss_clean() in the CI_Upload class
it gives me the 500 server error when there is a return value that equals true after updating the memry limit
when I removed this line it worked fine ini_set('memory_limit', $new_memory);
I don't know for sure but I think that resetting the memory many times is the problem
Notes :
I tried to display the errors by all means but no use it gave me 500 internal server error or an empty response.
I already set my upload_max_filesize , post_max_size , max_file_uploads and I'm positive they work.
as I said the error only occurred in this conditions otherwise it worked perfectly.
The text was updated successfully, but these errors were encountered:
I tried to upload many files and it worked perfectly but when I tried to upload like more that 50 pictures I received 500 internal server error
these are the configurations I used :
$config['upload_path'] = './uploads/screenshots/';
$config['allowed_types'] = 'jpg|jpeg|png';
$config['remove_spaces'] = TRUE;
$config['xss_clean'] = TRUE;
$config['encrypt_name'] = TRUE;
$config['max_size'] = '10240';
the error occured only when
$config['xss_clean']
is set to TRUEI tracked the code until I found that in the method
do_xss_clean()
in the CI_Upload classit gives me the 500 server error when there is a return value that equals true after updating the memry limit
when I removed this line it worked fine
ini_set('memory_limit', $new_memory);
I don't know for sure but I think that resetting the memory many times is the problem
Notes :
upload_max_filesize
,post_max_size
,max_file_uploads
and I'm positive they work.The text was updated successfully, but these errors were encountered: