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.
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
- 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.
Can you add this at the start of your script:
And then copy here what it says.