note 61876 added to features.file-upload
| From: | NeoNe at osu1 dot php dot net | Date: | Tue, 14 Feb 2006 12:32:34 +0000 |
| Subject: | note 61876 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-103684@lists.php.net to get a copy of this message | ||
Hy I have some time out problem when I uploading some file more then 2mb in firefox and explorer
my script is not so big script but I folow it on example
<?php
$dir = 'uploads/';
$uploadfile = $dir . basename($_FILES['userfile']['name']);
if (is_uploaded_file ($_FILES['userfile']['tmp_name']))
{
if
(move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile))
{ // Move the file over.
echo 'Your file has been uploaded successfully!';
}
else
{ // Couldn't move the file over.
echo 'Your file could not be uploaded please try again.</p>';
}
}
?>
and here is html
<form enctype="multipart/form-data" action="upload.php"
method="POST">
<input type="hidden" name="MAX_FILE_SIZE"
value="30000000">
<b>Choose a file to upload:</b> <input name="userfile"
type="file"><br>
<input type="submit" value="Upload File">
</form>
I wondering how I can upload files like 40mb on server I realy preshiate if u can help!
Thanx NeoNe
----
Server IP: 213.92.11.19
Probable Submitter: 81.208.83.215
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61876
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61876&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61876&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61876&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61876&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61876&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61876&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61876&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61876&report=yes
Search -- http://master.php.net/manage/user-notes.php