pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kelvin Varst <kelvin@varst.dk>
To: Vince Vielhaber <vev@michvhf.com>
Cc: Postgresql PHP <pgsql-php@postgresql.org>
Subject: Re: Large file upload
Date: Tue, 10 Dec 2002 20:03:52 +0100
Message-ID: <1039547033.14449@mail4.wannafind.dk> (raw)
In-Reply-To: <1039520436.6606@mail4.wannafind.dk>


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 "<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.






view thread (8+ messages)  latest in thread

Message-ID: <1039547033.14449@mail4.wannafind.dk>
Permalink:  ../1039547033.14449@mail4.wannafind.dk/
Also on:    postgresql.org/message-id/1039547033.14449@mail4.wannafind.dk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: kelvin@varst.dk, vev@michvhf.com
  Subject: Re: Large file upload
  In-Reply-To: <1039547033.14449@mail4.wannafind.dk>
  References: <1039520436.6606@mail4.wannafind.dk> <1039547033.14449@mail4.wannafind.dk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox