|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-02 17:06 UTC] cmoneti at twcny dot rr dot com
I am using PHP4.2.0RC1. When referencing .mp3 file uploads, the $_FILES[name]['tmp_name'] is empty, and $_FILES[name][size] is 0. When referencing other file types, everything works fine. Thanks. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 06:00:01 2025 UTC |
After further investigation, I have found that ini_set("upload_max_filesize", "15M") or ini_set("upload_max_filesize", "15000000") or ini_set("upload_max_filesize", 15000000) does not work. If I change the setting in php.ini, the uploads work. So, ini_set seems to be the culprit. The cutoff size _was_ the default 2M in php.ini. If "upload_max_filesize" cannot be set via a script, it is an unfortunate problem. I also tried setting ini_set("memory_limit","15M") and wonder about "post_max_size" (no detailed documentation). However, I didn't need to change them to make things work.