class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
for the record and so in case someone else runs into this problem
I did print_r( $_FILES ); and the array was empty step 1 verified my php.ini had file_uploads set to On step 2 found that I needed the following in my form
enctype="multipart/form-data"
Took me some time, if you don't have enctype set there is no output to the log files so you can't see what the problem is.
FYI this upload script is the greatest thing since sliced bread! LOL
Thanks I think I'm going to add an error code to the version of the script.
Something to the effect of
IF ( !is_array( $file ) or empty($file[name] )){
$this->upload = false;
this->error =_('php _FILES returned empty array');
}
I did print_r( $_FILES ); and the array was empty
step 1 verified my php.ini had file_uploads set to On
step 2 found that I needed the following in my form
Took me some time, if you don't have enctype set there is no output to the log files so you can't see what the problem is.
FYI this upload script is the greatest thing since sliced bread! LOL
Thanks I think I'm going to add an error code to the version of the script.
Something to the effect of
By the way, the solution is in the doc and in the FAQ ;)
As for the error message, I will add it in the next release, and will suggest to check the FORM tag.