04-04-2015, 10:11 AM (This post was last modified: 04-04-2015, 01:17 PM by vrsotto.)
Hi
I'm able to do multiple uploads using the following codes (bellow). on $config (req. var in $this->process_file_upload($field_file_name, $config)), i set allowed file types to "jpg|gif|png". So, when i test and upload files like in "file.htm, file.txt and then file.jpg". basically, files with ".htm" and ".txt" will not be uploaded. arrays $data[0]['error'] and arrays $data[2]['error'] should each have value "The filetype you are attempting to upload is not allowed." but what is happining is that arrays $data[2]['error'] kind'a concatenate value from $data[0]['error'], is this normal?
Please see my attached file showing my dump result.
(04-04-2015, 11:44 AM)gadelat Wrote: Yes. display_errors() outputs uploading errors for all of the files, doesn't matter if files were uploaded one by one. Remove this from loop