CodeIgniter Forums
Multiple file upload problem with Blueimp jQuery file uploader - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Multiple file upload problem with Blueimp jQuery file uploader (/showthread.php?tid=47773)



Multiple file upload problem with Blueimp jQuery file uploader - El Forum - 12-21-2011

[eluser]Unknown[/eluser]
Hi there,

I have a problem with this Blueimp ajax file uploader stuff. The upload process runs perfectly with multiple files. It uploads everything really nicely. The problem comes when i want to retrieve the file informations that have been uploaded.

I save the uploaded data to

Code:
$data = $this->upload->data();

But this only gives me information about the latest uploaded file. If i upload more than one files at a time, i can't find a way to tell the names for the first, second etc files. I can only tell the name of the last.

I also tried to access the $_FILES array. The problem is the same. When i for example do:

Code:
$_FILES['userfile']['name'][1]

it gives me the second character of the file path. I was expecting the second uploaded file with this. Why is this happening?

Any help with this would be greatly appreciated.


Multiple file upload problem with Blueimp jQuery file uploader - El Forum - 04-30-2012

[eluser]Unknown[/eluser]
@OP
It would be helpful if you post the code, which you fixed.