Knowledgebase

foreach() error? (File Uploading)

Posted by sheppardzwc, 02-13-2010, 08:34 PM
Hey guys, Getting an error when I try and use my upload script... any suggestions here/methods you've used that work?

Posted by sheppardzwc, 02-13-2010, 09:11 PM
Sorry, error is: Warning: Invalid argument supplied for foreach() in /home/closet/upload.php on line 16

Posted by aeris, 02-14-2010, 05:22 AM
Well, first of all that should probably be $_FILES['tooncloset_upload']['name'], not $_POST['tooncloset_upload']. Secondly, I have no idea why you're trying to iterate over the array twice.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Problems! What to do? (Views: 584)
hometown is down (Views: 573)
Malware found (Views: 574)
Hawkhost down? (Views: 621)


Language:

Client Login

Email

Password

Remember Me

Search