Hello everyone,
heres whats going on... im trying to get an upload script (php) to upload more then 1.5 megs. right now it is uploading files fine but once it gets a file that is over 1.5 megs, it gives me back an error.....
"The uploaded file for field file1 exceeds the maximum file size."
in the php script is says:
if (is_array($_FILES[$name]) == true) {
$field = str_replace("_", " ", $name);
# First check to see if there's an error associated with this file.
if ($_FILES[$name]['error'] == UPLOAD_ERR_INI_SIZE) {
errorMsg("The uploaded file for field $field exceeds the maximum file size.");
continue;
} elseif ($_FILES[$name]['error'] == UPLOAD_ERR_FORM_SIZE) {
errorMsg("The uploaded file for field $field exceeds the maximum file size.");
continue;
} elseif ($_FILES[$name]['error'] == UPLOAD_ERR_PARTIAL) {
errorMsg("The uploaded file for field $field failed, it was only partially uploaded.");
continue;
}
on the php.ini file it says:
upload_max_filesize 20M 20M
also, on the form itself, it has this line on the form
<input type="hidden" name="MAX_FILE_SIZE" value="2000000">
Does anyone know how i can make it possible for someone to be able to upload close to 10 megs per field? What might i be missing here or doing wrong that is giving me that message?
thanks in advance.
-JB-