Re: How to upload a file

From: Date: Wed, 18 Dec 2002 11:30:55 +0000
Subject: Re: How to upload a file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-128692@lists.php.net to get a copy of this message
Are you sure it's PHP the one that fails? i.e. do you get the "some error has occured while uploading the file $userfile_name<br>" message or some other message? I had this kind of problem when trying to store incoming files in a database, and the link to the database failed, not PHP. Also, if you have a slow connection, PHP might time out? I'm not sure if this is possible though, because I expect Apache to handle the upload (well, technically the download) and only run your PHP script after it finished that, but who knows? Bogdan Somesh wrote:
Hi Jon, It is as follows ; Maximum allowed size for uploaded files. upload_max_filesize = 8M On Wed, 18 Dec 2002, Jon Haworth wrote:
Hi Somesh,
This works fine for small files of like some Kbs but fails to upload larger files near to 1MB.
What's your upload_max_size set to in php.ini? Cheers Jon


« previous php.general (#128692) next »