Welcome Guest, Not a member yet? Register   Sign In
Validation is not run
#5

[eluser]noonereally[/eluser]
[quote author="pistolPete" date="1245174024"]Maybe your upload exceeds those PHP settings?
upload_max_filesize
post_max_size

If you have installed Suhosin, there is a setting called suhosin.upload.max_uploads[/quote]

Yeah, this might be it - post_max_size

There is a problem though... Let's say both limits are 16M and upload.php limit is set to 3M.
But I've got 7 image files to upload. If user selects 7 files and on average they are 2.5M, that makes 17.5M .So my form submit fails. Fails silently... And there's no errors from - $this->upload->display_errors

How do I detect and prevent this kind of situation?

EDIT: So CI Upload class doesn't check for $_SERVER['CONTENT_LENGTH'] ? Which can be smaller than upload size...

P.S. Thanks for all the suggestions, community here is great Smile


Messages In This Thread
Validation is not run - by El Forum - 06-16-2009, 03:01 AM
Validation is not run - by El Forum - 06-16-2009, 03:03 AM
Validation is not run - by El Forum - 06-16-2009, 06:33 AM
Validation is not run - by El Forum - 06-16-2009, 06:40 AM
Validation is not run - by El Forum - 06-16-2009, 07:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB