Upload File Error
Posted: Thu May 05, 2005 3:51 pm
I have some real simple code to upload a file and it it not working... any suggestions?
Form:
Process Form:
Error:
Thanks!
Form:
Code: Select all
<b>Select your File: </b><input type="file" name="userfile"> <input type="hidden" name="MAX_FILE_SIZE" value="24000">Code: Select all
copy ($userfile, "/batch/".$userfile_name) or die ("Could not copy");
$file = $userfile_name;Look at the local file path, why would \\ be showing up instead of \. I'm thinking that's the problem but how could I replace \\ with \ to give it a try. Php gets funny when you do \' or \".Warning: copy(C:\\Documents and Settings\\Administrator\\Desktop\\orders.csv): failed to open stream: No such file or directory in /home/buywell/public_html/bulk_order_process.php on line 14
Could not copy
Thanks!