Version 25rc1 with XAMPP

See all posts See thread Reply

Re: Version 25rc1 with XAMPP new!
by rr1024, 16 years, 7 months ago
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');
}
Reply
Re: Version 25rc1 with XAMPP new!
by colin, 16 years, 7 months ago
Glad you solved your issue.

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