[Commons-l] Upload large files

Alphax (Wikipedia email) alphasigmax at gmail.com
Mon Aug 21 12:40:55 UTC 2006


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

> 16.  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...

-- 
Alphax - http://en.wikipedia.org/wiki/User:Alphax
Contributor to Wikipedia, the Free Encyclopedia
"We make the internet not suck" - Jimbo Wales
Public key: http://en.wikipedia.org/wiki/User:Alphax/OpenPGP

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 569 bytes
Desc: OpenPGP digital signature
Url : http://lists.wikimedia.org/pipermail/commons-l/attachments/20060821/4185f360/attachment.pgp 


More information about the Commons-l mailing list