sharex is giving this error when uploading mp4 to my apache server Warning: POST…
Private research annotation
Sign in to add a private research label or note.
- User
sharex is giving this error when uploading mp4 to my apache server
Warning: POST Content-Length of 50718625 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
is this working?
Warning: Array to string conversion in /var/www/html/upload.php on line 25
Array
Warning: Cannot modify header information - headers already sent in /var/www/html/upload.php on line 26
- Assistant
The error message you're encountering is indicating that the size of the file you're trying to upload exceeds the maximum allowed by the server. The error message says that the limit is 8,388,608 bytes, and the file you're trying to upload is 50,718625 bytes, which is significantly larger.
The second error message is related to an issue in the PHP code of your upload script. It seems that you're trying to modify the HTTP headers, but they have already been sent to the browser. This can happen if there is any output to the browser before you attempt to modify the headers.
To resolve the first issue, you'll need to increase the maximum allowed file size on the server. This can be done by modifying the settings in your server's configuration file (e.g. php.ini, httpd.conf, etc.). The exact process for doing this will depend on your server setup, but you'll typically need to adjust the
post_max_sizeandupload_max_filesizesettings.To resolve the second issue, you'll need to make sure that no output is sent to the browser before you attempt to modify the headers. This can be done by ensuring that no whitespace or echo statements are present before the header() function call in your PHP code.