Magnus Manske wrote:
I've found some nice classical ogg files online (CC-BY-SA-2.0). However, some are larger than 20 MB. Uploading those leads me back to a blank upload page, without comment or error. 20MB seems to be a magical limt for PHP.
Is there a way to bypass that limit? I'd hate to have to cut perfectly good ogg files.
According to my PHP manual, Chapter 38 (Handling file uploads):
Related Configurations Note: See also the file_uploads, upload_max_filesize, upload_tmp_dir, post_max_size and max_input_time directives in php.ini
where
upload_max_filesize integer
The maximum size of an uploaded file.
When an integer is used, the value is measured in bytes. You may also use shorthand notation as described in this FAQ.
and the FAQ says
- A few PHP directives may also take on shorthand byte values, as
opposed to only integer byte values. What are all the available shorthand byte options? And can I use these outside of php.ini?
The available options are K (for Kilobytes), M (for Megabytes) and G (for Gigabytes; available since PHP 5.1.0), these are case insensitive. Anything else assumes bytes. 1M equals one Megabyte or 1048576 bytes. 1K equals one Kilobyte or 1024 bytes. You may not use these shorthand notations outside of php.ini, instead use an integer value of bytes. See the ini_get() documentation for an example on how to convert these values.
Now, unless there's a hard limit of 20MB that's not documented in the manual...