RE: [PHP] File Upload Size Limits

2001-07-27 Thread Gunther E. Biernat

I once had the same problem in a similar environment, but I never worked on it to fix 
it because it was sufficient for the given purpose. Later, I moved the script 1:1 
(including php.ini) to a server running caudium as web server software and the problem 
was gone...

Huh?


Did anyone have any thoughts on this?  I can upload an 8 MB file, but after
that the upload fails.


I am running PHP 4.0pl1 with Apache 1.3.14 on RedHat Linux 7.1.  I am trying
to do a file upload from the users PC to my web server.  If I do a small
file, the transfer goes fine.  If I do a large file ( 50 MB), the transfer
fails saying either the file was not available for reading or my script just
bombs out.  I need to be able to have people upload large files.  I have
changed the setting in php.ini to upload_max_filesize = 100M.

Do I also need to change the following entries in php.ini?
   max_execution_time = 60
   memory_limit = 8M

Is this an apache limit?  I'm not sure what to do with this as I really need
to be able to transfer large files.


mit freundlichen Gruessen / yours sincerely


Gunther E. Biernat
Web Application Engineer
__

RealNetworks GmbH   Tel.: +49-40-415204-24
Weidestraße 128 Fax.: +49-40-415204-11
22083 Hamburg   Mail: [EMAIL PROTECTED]
Germany URL : http://de.real.com
__



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] File Upload Size Limits

2001-07-26 Thread Michael Conley

Did anyone have any thoughts on this?  I can upload an 8 MB file, but after
that the upload fails.

-Original Message-
From: Michael Conley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 7:41 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] File Upload Size Limits


I am running PHP 4.0pl1 with Apache 1.3.14 on RedHat Linux 7.1.  I am trying
to do a file upload from the users PC to my web server.  If I do a small
file, the transfer goes fine.  If I do a large file ( 50 MB), the transfer
fails saying either the file was not available for reading or my script just
bombs out.  I need to be able to have people upload large files.  I have
changed the setting in php.ini to upload_max_filesize = 100M.  

Do I also need to change the following entries in php.ini?
max_execution_time = 60
memory_limit = 8M

Is this an apache limit?  I'm not sure what to do with this as I really need
to be able to transfer large files.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] file upload size limits

2001-02-15 Thread Nick Winfield

On Thu, 15 Feb 2001, Scott wrote:

 I am uploading files and want to limit the size of the file. I can do this
 as long as the file that I am uploading doesn't exceed the Server limit. We
 don't own the server so I can't change any configuration on the server.
 
 Is there a way to Catch the warning and display my own message in the
 browser.
 
 The Warning that I am getting is
 
 Warning: Max file size of 2097152 bytes exceeded - file [upfile] not saved
 in [no active file] on line 0

You could control filesize within the HTML form.

input type="hidden" name="MAX_FILE_SIZE" value="(insert size)" /

This means that PHP will automatically reject files over the specified
size. As far as I know, I'm not sure you will be able to catch the
exceeded file error before it is passed back to the client, so customising
the error might be out of the question. Also, I doubt you would be able to
perform any kind of action that would determine the entire size of the
uploading file prior to the upload being completed - if there was a way to
catch this, then you would be able to redirect to an error page at the
beginning of the upload, thus meaning that there would be no time wasted
on the user's behalf. :)

Cheers,

Nicky W..
-[ [EMAIL PROTECTED] ]-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]