me sale este warning
Warning: copy(01.JPG) [function.copy]: failed to open stream: No such file or directory in C:\websites\up\upload_file.php on line 4
Could not copy file!
este es mi codigo
Código HTML:
Ver original
upload_file.php
<?php
if( $_FILES['file']['name'] != "" )
{
copy( $_FILES['file']['name'], "up" ) or
die( "Could not copy file!");
}
else
{
die("No file specified!");
}
?>
<html>
<head>
<title>Uploading Complete</title>
</head>
<body>
<h2>Uploaded File Info:</h2>
<ul>
<li>Sent file: <?php echo $_FILES['file']['name']; ?>
<li>File size: <?php echo $_FILES['file']['size']; ?> bytes
<li>File type: <?php echo $_FILES['file']['type']; ?>
</ul>
</body>
</html>
que estoy haceindo mal?