I'm trying to create a script which allows a user to ftp an image file from the user's local hard drive to the server. I'm using ftp_put and everything works except the file is always 0kb.
The user filles out a form that look in part like the following:
<form action="editInventoryX.php" enctype="multipart/form-data" method="post">
...
<input name="imageBigURL" type="file" size="32">
...
</form>
There are several other input items, but they have nothing to do with the image to be ftp'ed.
If I try to echo it to the browser, $POST["imageBigURL"] is alway empty. So is $FILES['userfile']['tmp_name'].
Does anyone have any ideas?
Thanks in advance.