I created a webform that allows a user to choose a file from his computer, and send it. For some reason, the script I created to handle this works fine on one server, but not on another... I notice that when I use the script on the new server, the uploaded file is never placed into a temporary folder, and important information is not available ($file_type, $file_name)
For example, when $file is passed from the web form to the confirm page, the file should be placed in a temporary spot on the server (awaiting some action, etc.). On the old server, the file is moved from...
c:/windows/desktop/filename.jpg
to
/servername/user/home/tmp/123456name.jpg
("the root web directory for my server" / tmp)
So, $file = "/servername/user/home/tmp/123456name.jpg" on the form submission page.
On the new server, the file is never moved to a temporary directory and $file still equals "c:/windows/desktop/filename.jpg"
Hence, this is probably why I am having trouble performing any actions and getting an info (file_name, file_type)
How do I make the file copy it temporarily? I thought this was automatic...
Jabbamonkey