Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A88CA4767A9 for ; Tue, 10 Dec 2002 14:34:36 -0500 (EST) Received: from cornelius-olsen.dk (0x50c4f773.arcnxx7.adsl-dhcp.tele.dk [80.196.247.115]) by postgresql.org (Postfix) with ESMTP id 13950476876 for ; Tue, 10 Dec 2002 14:30:03 -0500 (EST) To: "Kelvin Varst" Cc: "Postgresql PHP" Subject: Re: Large file upload MIME-Version: 1.0 X-Mailer: Lotus Notes Release 5.0.9 November 16, 2001 Message-ID: From: jco@cornelius-olsen.dk Date: Tue, 10 Dec 2002 20:29:26 +0100 X-MIMETrack: Serialize by Router on sonic/cgroup(Release 5.0.11 |July 24, 2002) at 12/10/2002 08:29:29 PM, Serialize complete at 12/10/2002 08:29:29 PM Content-Type: multipart/alternative; boundary="=_alternative 006B1E82C1256C8B_=" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/29 X-Sequence-Number: 1704 This is a multipart message in MIME format. --=_alternative 006B1E82C1256C8B_= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable At www.php.net someone writes: "When uploading very large files (greater than the default 8M) I found=20 that I had alter not only the "max_file_size" input and the php.ini=20 max_file_size limit, but ALSO the "post_max_size" variable in the php.ini= =20 file. Because I was submitting the file via a POST request, it would hit this=20 limit and deny the upload." If that still doesn't help you might consider telling us what error=20 messages you are getting. Regards /J=F8rn "Kelvin Varst" Sent by: pgsql-php-owner@postgresql.org 10-12-2002 20:03 =20 To: "Vince Vielhaber" cc: "Postgresql PHP" Subject: Re: [PHP] Large file upload Hi, The upload takes more than 30 seconds, but I get the error immediately. I dont think that the webserver is aware of the page will take longer than=20 30 seconds to upload and therefore sends an error at the beginning of the upload. Kelvin :-) -----Oprindelig meddelelse----- Fra: Vince Vielhaber [mailto:vev@michvhf.com] Sendt: 10. december 2002 12:41 Til: Kelvin Varst Cc: Postgresql PHP Emne: Re: [PHP] Large file upload On Tue, 10 Dec 2002, Kelvin Varst wrote: > > Hi, > > I'm trying to upload large files via my homepage. I'm using a form: > print "
method=3D\"POST\">"; > > And with files up to approx 500kb it works. But with larger files, the > browser can't find the page, and if I refresh the page, I get some query > errors. In the php.ini the post_max_size is set to 8M. If it's taking longer than about 25-30 seconds you could be timing out. Try putting set_time_limit(0) at the top of the script. If it works you might want to try replacing the 0 with a reasonable time limit. The time is in seconds. Vince. -- Fast, inexpensive internet service 56k and beyond! http://www.pop4.net/ http://www.meanstreamradio.com http://www.unknown-artists.com Internet radio: It's not file sharing, it's just radio. ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org --=_alternative 006B1E82C1256C8B_= Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
At www.php.net someone writes:
"When uploading very large file= s (greater than the default 8M) I found that I had alter not only the "= ;max_file_size" input and the php.ini max_file_size limit, but ALSO th= e "post_max_size" variable in the php.ini file.

Because I was submitting the file vi= a a POST request, it would hit this limit and deny the upload."

If that still doesn't help you might= consider telling us what error messages you are getting.

Regards
/J=F8rn


"Kelvin Varst" <kelv= in@varst.dk>
Sent by: pgsql-php-owner@postgresql.= org

10-12-2002 20:03

       
        To: &nbs= p;      "Vince Vielhaber" <vev@michvhf.com><= /font>
        cc: &nbs= p;      "Postgresql PHP" <pgsql-php@postgresql.= org>
        Subject:=        Re: [PHP] Large file upload




Hi,

The upload takes more than 30 seconds, but I get the error immediately. I dont think that the webserver is aware of the page will take longer than 30=
seconds to upload and therefore sends an error at the beginning of the
upload.

Kelvin :-)

-----Oprindelig meddelelse-----
Fra: Vince Vielhaber [mailto:vev@michvhf.com]
Sendt: 10. december 2002 12:41
Til: Kelvin Varst
Cc: Postgresql PHP
Emne: Re: [PHP] Large file upload



On Tue, 10 Dec 2002, Kelvin Varst wrote:

>
> Hi,
>
> I'm trying to upload large files via my homepage. I'm using a form:
>                  print &q= uot;<form enctype=3D\"multipart/form-data\"
action=3D\"approve_element.php\"
> method=3D\"POST\">";
>
> And with files up to approx 500kb it works. But with larger files, the=
> browser can't find the page, and if I refresh the page, I get some que= ry
> errors. In the php.ini the post_max_size is set to 8M.

If it's taking longer than about 25-30 seconds you could be timing out.
Try putting set_time_limit(0) at the top of the script.  If it works y= ou
might want to try replacing the 0 with a reasonable time limit.  The t= ime
is in seconds.

Vince.
--
Fast, inexpensive internet service 56k and beyond!  http://www.pop4.n= et/
  http://www.meanstreamradio.com       http://www.unkn= own-artists.com
        Internet radio: It's not file sharing, it's ju= st radio.




---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


--=_alternative 006B1E82C1256C8B_=--