File too big

See all posts See thread Reply

Re: File too big new!
by Wilfried, 15 years, 10 months ago
When I change the command to print_r($FILES['foto']);
I get the following output:
Array ( 
  [name] => Array ( [0] => wilfried.gif ) 
  [type] => Array ( [0] => image/gif ) 
  [tmp_name] => Array ( [0] => /tmp/php5vnwGX ) 
  [error] => Array ( [0] => 0 ) 
  [size] => Array ( [0] => 18806 ) 
)

system information
- class version : 0.28
- GD version : 2.0.28
- supported image types : png jpg gif bmp
- open_basedir : /var/www/vhosts/vriens.be/subdomains/cafeminerva/httpdocs:/tmp
- language : nl_NL
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
Fileinfo PECL extension not available
- Checking MIME type with UNIX file() command
UNIX file() command failed
- Checking MIME type with mime.magic file (mime_content_type())
MIME type detected as by mime_content_type()
- Checking MIME type with getimagesize()
getimagesize() failed
- MIME type detected as Array by browser
- Try to guess MIME type from file extension (): MIME type set to Array
- MIME type couldn't be detected! (Array)
source variables
- You can use all these before calling process()
file_src_name : Array
file_src_name_body : Array
file_src_name_ext :
file_src_pathname : Array
file_src_mime : Array
file_src_size : Array (max= 2097152)
file_src_error : Array
process file to /fotos/stamgasten/
- error: Het bestand is te groot.
Reply
Re: File too big new!
by colin, 15 years, 10 months ago
Your upload file in your form is multiple. That's why you have an array for each one of your values in the $_FILES array.

See the section called What about multiple uploads in the FAQ.Reply