$_FILES empty on image upload
Posted
by zvir
on Stack Overflow
See other posts from Stack Overflow
or by zvir
Published on 2010-04-26T12:59:12Z
Indexed on
2010/04/26
13:03 UTC
Read the original article
Hit count: 156
i need help, i'm programing some kind of catalogue and i have a page where clients can upload their logo or images. every page i make is included in index.php and my url looks like something like this www.url.com/index.php?s=upload where "upload" is name of upload.php file.
when i create form on that upload.php file and submit it, $_FILES array is empty.
echo "<form method=\"post\" enctype=\"multipart/form-data\" action=\"index.php\" />\n";
echo "<input type=\"file\" name=\"image\">\n";
echo "<input type=\"hidden\" name=\"s\" value=\"upload\">\n";
echo "<input type=\"submit\" name=\"submit\" value=\"Spremi\">\n";
echo "</form>\n";
i tried everything and nothing works. $_POST items are returned but $_FILES are empty...
© Stack Overflow or respective owner