Restrict image by file size

See all posts See thread Reply

Re: Restrict image by file size new!
by colin, 15 years, 5 months ago
Yes, I now see what is going on.

Basically, if you set $foo->file_max_size to a very small value, $foo->processed becomes false, and you have an error in $foo->error which will say "File too big"

But the code has a bug, and so it carries on processing the file even if $foo->processed is false.

I will fix it in the next release. I will try to have a test release before the end of the dayReply
Re: Restrict image by file size new!
by colin, 15 years, 5 months ago
Can you try the following test release? 0.28RC1

It should solve the problem. If the class doesn't pass a check, such as the maximum file size check, the processing will stop, and the error will be set. The error will also be logged for convenience purposes.

Let me know.Reply