Bug #16400 Updated: $_FILES array and mp3 files
ID: 16400 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Assigned +Status: Closed Bug Type: Documentation problem Operating System: Linux RH7.1 PHP Version: 4.1.2 Assigned To: sander New Comment: This bug has been fixed in CVS. Previous Comments: [2002-04-04 04:05:09] [EMAIL PROTECTED] It is settable in a script, but it just doesn't have any effect. Reopening as a documentation problem and assigning to myself. [2002-04-03 17:26:09] [EMAIL PROTECTED] So, you are saying that the max filesize for uploads cannot be set in script? Perhaps the documentation is confusing me. Would you explain what the ini_set parameter upload_max_filesize is used for? The documentation for ini_set() says this parameter is settable via script (PHP_INI_ALL). Thanks. [2002-04-03 12:31:35] [EMAIL PROTECTED] PHP decides whether a file is accepted BEFORE your script runs. The changes to php.ini with ini_set() are made AFTER the uploads are processed by PHP, and thus have no effect on the the decision. This is intended behaviour. [2002-04-03 11:02:09] [EMAIL PROTECTED] After further investigation, I have found that ini_set(upload_max_filesize, 15M) or ini_set(upload_max_filesize, 1500) or ini_set(upload_max_filesize, 1500) 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. [2002-04-03 01:40:02] [EMAIL PROTECTED] Does it work with other file types of similar size to the MP3s which you are uploading? i.e. are you sure it's not a max_file_size problem? Torben The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16400 -- Edit this bug report at http://bugs.php.net/?id=16400edit=1
Bug #16400 Updated: $_FILES array and mp3 files
ID: 16400 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Bogus +Status: Assigned -Bug Type: HTTP related +Bug Type: Documentation problem Operating System: Linux RH7.1 PHP Version: 4.1.2 -Assigned To: +Assigned To: sander New Comment: It is settable in a script, but it just doesn't have any effect. Reopening as a documentation problem and assigning to myself. Previous Comments: [2002-04-03 17:26:09] [EMAIL PROTECTED] So, you are saying that the max filesize for uploads cannot be set in script? Perhaps the documentation is confusing me. Would you explain what the ini_set parameter upload_max_filesize is used for? The documentation for ini_set() says this parameter is settable via script (PHP_INI_ALL). Thanks. [2002-04-03 12:31:35] [EMAIL PROTECTED] PHP decides whether a file is accepted BEFORE your script runs. The changes to php.ini with ini_set() are made AFTER the uploads are processed by PHP, and thus have no effect on the the decision. This is intended behaviour. [2002-04-03 11:02:09] [EMAIL PROTECTED] After further investigation, I have found that ini_set(upload_max_filesize, 15M) or ini_set(upload_max_filesize, 1500) or ini_set(upload_max_filesize, 1500) 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. [2002-04-03 01:40:02] [EMAIL PROTECTED] Does it work with other file types of similar size to the MP3s which you are uploading? i.e. are you sure it's not a max_file_size problem? Torben [2002-04-02 17:06:52] [EMAIL PROTECTED] 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. -- Edit this bug report at http://bugs.php.net/?id=16400edit=1
Bug #16400 Updated: $_FILES array and mp3 files
ID: 16400 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Unknown/Other Function Operating System: Linux RH7.1 PHP Version: 4.1.2 New Comment: After further investigation, I have found that ini_set(upload_max_filesize, 15M) or ini_set(upload_max_filesize, 1500) or ini_set(upload_max_filesize, 1500) 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. Previous Comments: [2002-04-03 01:40:02] [EMAIL PROTECTED] Does it work with other file types of similar size to the MP3s which you are uploading? i.e. are you sure it's not a max_file_size problem? Torben [2002-04-02 17:06:52] [EMAIL PROTECTED] 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. -- Edit this bug report at http://bugs.php.net/?id=16400edit=1
Bug #16400 Updated: $_FILES array and mp3 files
ID: 16400 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus -Bug Type: Unknown/Other Function +Bug Type: HTTP related Operating System: Linux RH7.1 PHP Version: 4.1.2 New Comment: PHP decides whether a file is accepted BEFORE your script runs. The changes to php.ini with ini_set() are made AFTER the uploads are processed by PHP, and thus have no effect on the the decision. This is intended behaviour. Previous Comments: [2002-04-03 11:02:09] [EMAIL PROTECTED] After further investigation, I have found that ini_set(upload_max_filesize, 15M) or ini_set(upload_max_filesize, 1500) or ini_set(upload_max_filesize, 1500) 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. [2002-04-03 01:40:02] [EMAIL PROTECTED] Does it work with other file types of similar size to the MP3s which you are uploading? i.e. are you sure it's not a max_file_size problem? Torben [2002-04-02 17:06:52] [EMAIL PROTECTED] 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. -- Edit this bug report at http://bugs.php.net/?id=16400edit=1
Bug #16400 Updated: $_FILES array and mp3 files
ID: 16400 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: HTTP related Operating System: Linux RH7.1 PHP Version: 4.1.2 New Comment: So, you are saying that the max filesize for uploads cannot be set in script? Perhaps the documentation is confusing me. Would you explain what the ini_set parameter upload_max_filesize is used for? The documentation for ini_set() says this parameter is settable via script (PHP_INI_ALL). Thanks. Previous Comments: [2002-04-03 12:31:35] [EMAIL PROTECTED] PHP decides whether a file is accepted BEFORE your script runs. The changes to php.ini with ini_set() are made AFTER the uploads are processed by PHP, and thus have no effect on the the decision. This is intended behaviour. [2002-04-03 11:02:09] [EMAIL PROTECTED] After further investigation, I have found that ini_set(upload_max_filesize, 15M) or ini_set(upload_max_filesize, 1500) or ini_set(upload_max_filesize, 1500) 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. [2002-04-03 01:40:02] [EMAIL PROTECTED] Does it work with other file types of similar size to the MP3s which you are uploading? i.e. are you sure it's not a max_file_size problem? Torben [2002-04-02 17:06:52] [EMAIL PROTECTED] 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. -- Edit this bug report at http://bugs.php.net/?id=16400edit=1
Bug #16400 Updated: $_FILES array and mp3 files
ID: 16400 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: Linux RH7.1 PHP Version: 4.1.2 New Comment: Does it work with other file types of similar size to the MP3s which you are uploading? i.e. are you sure it's not a max_file_size problem? Torben Previous Comments: [2002-04-02 17:06:52] [EMAIL PROTECTED] 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. -- Edit this bug report at http://bugs.php.net/?id=16400edit=1