max_size fails |
PHP Code: I have this input:
Example from the documentation https://codeigniter.com/user_guide/libra...le-uploads
max_size[field_name,2048]
post_max_size:
Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize Generally speaking, memory_limit should be larger than post_max_size. PHP Default: 8M upload_max_filesize: The maximum size of an uploaded file PHP Default: 2M What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
I have post_max_size to 100M, same for upload_max_filesize, and memory_limit is 32M
I followed the documentation so this should be correct: 'delega' => 'mime_in[delega,application/pdf]|max_size[1024]' but why it fails?
try:
PHP Code: max_size[4096] What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Did you check to see what the size of the file is?
Only other thing that will give you error is if the mime type is not recognized. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Glad you got it working.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |