• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI3 Multiple file upload: Custom error message ($this->upload->display_errors())

#1
Hi All!,

My multiple file uploading is working just fine. But how do i customize/alter file upload error message(s)? let say i have 4 files uploads, 2 files are invalid with each corresponding errors like:

Quote:- The filetype you are attempting to upload is not allowed.
- The file you are attempting to upload is larger than the permitted size.

what would i like is to customize messages some thing like:

Quote:- The filetype (of file2.xxx) you are attempting to upload is not allowed (only jpg|gif|png accepted).
- The file (file3.xxx) you are attempting to upload is larger than the permitted size (of 1000 KB).

with these kind of "error" messaging, it would be easy for user's to identify which file is having issues.

NOTE: I'm not using callback yet

i hope anyone can help...

thanks much in advanced,

vrsotto
Reply


Messages In This Thread
CI3 Multiple file upload: Custom error message ($this->upload->display_errors()) - by vrsotto - 04-22-2015, 11:43 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.