0 Replies - 6031 Views - Last Post: 02 March 2009 - 11:09 AM

#1 arshem   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 02-March 09

jQuery Multi File Upload + PHP issues

Posted 02 March 2009 - 11:09 AM

Hey everyone!

Heres' my issue. When using jquery for multiple file uploads [photos currently], everything is working out fine, however when i go to submit it, the array is messed up. Here is what i have currently

<script src="http://localhost/jscript/multifile.js" type="text/javascript"></script>
{include file="simple_top.tpl" secheader="Upload Photo"}
<form action="http://localhost/index.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="module" value="photos">
<input type="hidden" name="folder" value="photos">
<input type="hidden" name="do" value="upload_photos">
<input type="file" name="photos[]" id="photos" class="multi" accept="gif|jpg">
<input type="submit" value="Upload Photo">
</form>
{include file="simple_close.tpl"}




Array ( [0] => [1] => cat_bg.gif [2] => cat_arrowdown.gif [3] => cat_arrow.gif ) Array ( [0] => [1] => image/gif [2] => image/gif [3] => image/gif ) Array ( [0] => [1] => C:\wamp\tmp\php884C.tmp [2] => C:\wamp\tmp\php884D.tmp [3] => C:\wamp\tmp\php884E.tmp ) Array ( [0] => 4 [1] => 0 [2] => 0 [3] => 0 ) Array ( [0] => 0 [1] => 54 [2] => 62 [3] => 65 )

The names are in an array, the mime type are in an array , and the errors / filesize are also in seperate arrays.

Usually when you post a single file you array is on the file, not seperated into name,mime, errors, filesize .

If this belongs in PHP, please let me know so i can get it in the right location

Thanks!
Brandon

Is This A Good Question/Topic? 0
  • +

Page 1 of 1