I meet problem on uploading a file with a large file size.
Below is my code, how can I modify in order to be able to upload a
large file successfully ? Thank for your help.
upload.html:
<html>
<body><br><br>< center>
<form action="upload. php" method=post enctype="multip art/form-data">
File upload: <input type=file name="userfile" >
<input type=submit value="send"><b r> </form>
</center></body> </html>
upload.php:
<?
$realname = $HTTP_POST_FILE S['userfile']['name'];
print "<br><br>";
if (is_uploaded_fi le($HTTP_POST_F ILES['userfile']['tmp_name'])){
copy($HTTP_POST _FILES['userfile']['tmp_name'],
"/mnt/flash/song/$realname");
echo "Upload Filename: " . $HTTP_POST_FILE S['userfile']['name'];
}
else{
echo "Upload not complete";
}
print "<a href='upload.ht ml' target='mainF'> Continue to
upload</a>";
?>
Below is my code, how can I modify in order to be able to upload a
large file successfully ? Thank for your help.
upload.html:
<html>
<body><br><br>< center>
<form action="upload. php" method=post enctype="multip art/form-data">
File upload: <input type=file name="userfile" >
<input type=submit value="send"><b r> </form>
</center></body> </html>
upload.php:
<?
$realname = $HTTP_POST_FILE S['userfile']['name'];
print "<br><br>";
if (is_uploaded_fi le($HTTP_POST_F ILES['userfile']['tmp_name'])){
copy($HTTP_POST _FILES['userfile']['tmp_name'],
"/mnt/flash/song/$realname");
echo "Upload Filename: " . $HTTP_POST_FILE S['userfile']['name'];
}
else{
echo "Upload not complete";
}
print "<a href='upload.ht ml' target='mainF'> Continue to
upload</a>";
?>
Comment