Reply to Re: Version 25rc1 with XAMPP

Re: Version 25rc1 with XAMPP new!
by rr1024, 16 years 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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important