upload heeelp
Min kode ser sådan ud simpel måske for simpel. Men jeg får disse fejl når jeg tester.Warning: Unable to create '/upload/extranet.gif': No such file or directory in /usr/local/www/mudwebdk/www/fabrik/upload.php on line 6
Warning: Unable to move '/var/tmp/phpcHlQrH' to '/upload/extranet.gif' in /usr/local/www/mudwebdk/www/fabrik/upload.php on line 6
-------------------------------------------------------
<?php
if($action) {
echo"tjek action";
$userfile = $_FILES['userfile']['tmp_name'];
if ($userfile) {
move_uploaded_file($userfile,"/upload/".$userfile_name);
}
}
?>
<html>
<head>
<title>Upload af fil</title>
</head>
<body>
<form enctype="multipart/form-data" action="upload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="8096000">
<table cellpadding="3" cellspacing="1" border="0">
<tr>
<th align="center" colspan="2"><b>Upload fil</b></th>
</tr>
<tr>
<td>Indsæt denne fil:</td>
<td><input name="userfile" type="file"></td>
</tr>
<tr>
<td colspan="2"><input class="knap" name="action" type="submit" value="Send File"></td>
</tr>
</table>
</form>
</body>
</html>
