javascript + multiple file uploads |
[eluser]nikefido[/eluser]
So, I discovered the javascript problem (firefox is very picky about dynamic form elements and nested form elements...click here for more info ) Now, I have a $_FILES array that that looks like the IE one in the post above...however, that doesn't seem compatible with using CI's upload function: Code: $this->upload->do_upload($field_name); //takes a field name, such as: $_FILES['fieldName'] now, I thought I'd have an array of files such as: $_FILE['userfile'][0], $_FILE['userfile'][1] and so forth... However, get the array above (IE one) that has $_FILE['userfile']['name'][0] & $_FILE['userfile']['name'][1] So, it looks like I might have to do some hacking / extending of CI's file uploading class? Of course, an "easier" way might be to use different field names, but ... it's just not as clean...but I guess I have to do what I have to do... |
Messages In This Thread |
javascript + multiple file uploads - by El Forum - 05-05-2008, 10:47 AM
javascript + multiple file uploads - by El Forum - 05-05-2008, 11:24 AM
|