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.
Hi, a have some problems on upload a file, i used de $handle->log and this is the response:
Notice: A non well formed numeric value encountered in /var/www/html/sistema/vendor/class.upload.php on line 2678 system information - class version : 0.33 - operating system : Linux - PHP version : 7.2.12 - GD version : 2.2.5 - supported image types : png jpg gif bmp - open_basedir : no restriction - upload_max_filesize : 50M (52428800 bytes) - language : en_GB source is a local file uploads/fotografias/000002.jpg - local file OK determining MIME type - Checking MIME type with Fileinfo PECL extension MAGIC path will not be used MIME type detected as image/jpeg; charset=binary by Fileinfo PECL extension - MIME validated as image/jpeg source variables - You can use all these before calling process() file_src_name : 000002.jpg file_src_name_body : 000002 file_src_name_ext : jpg file_src_pathname : uploads/fotografias/000002.jpg file_src_mime : image/jpeg file_src_size : 75193 (max= 52428800) file_src_error : 0 - source file is an image image_src_x : 240 image_src_y : 240 image_src_pixels : 57600 image_src_type : jpg image_src_bits : 8
Can you help me to solve it please? thanks from MéxicoReply
Re: A non well formed numeric value encountered new!
Notice: A non well formed numeric value encountered in /var/www/html/sistema/vendor/class.upload.php on line 2678
system information
- class version : 0.33
- operating system : Linux
- PHP version : 7.2.12
- GD version : 2.2.5
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 50M (52428800 bytes)
- language : en_GB
source is a local file uploads/fotografias/000002.jpg
- local file OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
MAGIC path will not be used
MIME type detected as image/jpeg; charset=binary by Fileinfo PECL extension
- MIME validated as image/jpeg
source variables
- You can use all these before calling process()
file_src_name : 000002.jpg
file_src_name_body : 000002
file_src_name_ext : jpg
file_src_pathname : uploads/fotografias/000002.jpg
file_src_mime : image/jpeg
file_src_size : 75193 (max= 52428800)
file_src_error : 0
- source file is an image
image_src_x : 240
image_src_y : 240
image_src_pixels : 57600
image_src_type : jpg
image_src_bits : 8
Can you help me to solve it please? thanks from México