Ik gebruik de volgende script om een filetje te uploaden (een zipje) maar hij komt steeds bij "Upload failed".
Ziet iemand de fout?
PHP:
1
| <? $ok = $HTTP_GET_VARS['ok']; if ($ok == 1){ print $HTTP_POST_FILES['myfile']['name']; if (is_uploaded_file($HTTP_POST_FILES['myfile']['tmp_name'])){ copy($HTTP_POST_FILES['myfle']['tmp_name'], "./uploads/" . $myfile_name); } else { echo "Upload failed"; } } else { echo "<form>\n"; echo "Description:<br><input type=text name=description><br>\n"; echo "File:<br><input type=file name=myfile><br>\n"; echo "<input type=hidden name=MAX_FILE_SIZE value=100000000000>"; echo "<input type=submit><input type=hidden name=ok value=1>\n"; echo "</form>\n"; }?> |
Ziet iemand de fout?