Skip navigation
Currently Being Moderated

multi file upload using foreach

May 21, 2012 7:12 PM

Tags: #php

I am using a foreach loop to upload each file that is sent to the upload processing.  in that loop, i have it print out the name of the file.  for some reason though, it prints out the file name more than once.  i am only sending it one file.  what could be the cause of this? I will also get an error on this line sometimes: foreach($_FILES['upload'] AS $key => $value){  It will tell me "Warning: Invalid argument supplied for foreach() in /.../processUpload.php on line 10"

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points