Re: Large file upload - Mailing list pgsql-php

From Vince Vielhaber
Subject Re: Large file upload
Date
Msg-id Pine.BSF.4.44.0212100638001.18634-100000@paprika.michvhf.com
Whole thread Raw
In response to Large file upload  ("Kelvin Varst" <kelvin@varst.dk>)
List pgsql-php
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 "<form enctype=\"multipart/form-data\" action=\"approve_element.php\"
> method=\"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.


pgsql-php by date:

Previous
From: sharmad@softhome.net
Date:
Subject: Re: Large file upload
Next
From: angelo.rigo@globo.com
Date:
Subject: forms /selects