file_src_name_ext can't get jpg extension

See all posts See thread Reply

Re: file_src_name_ext can't get jpg extension new!
by colin, 16 years, 11 months ago
For the JPEG, your file seems not to have been uploaded at all, which is why the variables are empty.

You must have $foo->uploaded equals to false. The error code (file_src_error : 2) indicates that the file is too big because there is a limit set in your HTML input file field. In fact, you probably have a plain english error message in $foo->error which is likely saying "File upload error (the uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the html form)".

Is is not the case? Doesn't your code work with a small JPEG file?Reply