Restrict image by file size

See all posts See thread Reply

Re: Restrict image by file size new!
by Ben, 15 years, 5 months ago
Hi Colin,

Many thanks for the reply. Looking at the log as per you suggestion above shows no errors (see output below). As soon as i add in the file size restriction it dies with the error in my first post. Interestingly enough, at line 3036, if i echo $this->file_dst_path and this->file_dst_name_ext, they are both empty. Only the $hash is populated.

Im going to pull the code out of the MVC framework and run it stand alone for further testing. It must be something in my framework causing the issue.

Best regards, Ben.

system information
- class version : 0.27
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
- MIME type detected as image/jpeg by PHP getimagesize() function
- source variables
file_src_name : LGIM0134.jpg
file_src_name_body : LGIM0134
file_src_name_ext : jpg
file_src_pathname : /tmp/php1aPrgK
file_src_mime : image/jpeg
file_src_size : 211818 (max= 10485760)
file_src_error : 0
- source file is an image
image_src_x : 1024
image_src_y : 768
image_src_pixels : 786432
image_src_type : jpg
image_src_bits : 8
process file to /home/boardh/web/users/test/
- file mime OK : image/jpeg
FATAL:
Reply