Re: Large file upload

From: jco(at)cornelius-olsen(dot)dk
To: "Kelvin Varst" <kelvin(at)varst(dot)dk>
Cc: "Postgresql PHP" <pgsql-php(at)postgresql(dot)org>
Subject: Re: Large file upload
Date: 2002-12-10 19:29:26
Message-ID: OF96192BC8.2947E7CF-ONC1256C8B.006AE98C@dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

At www.php.net someone writes:
"When uploading very large files (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 the "post_max_size" variable in the php.ini
file.

Because I was submitting the file via 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ørn

"Kelvin Varst" <kelvin(at)varst(dot)dk>
Sent by: pgsql-php-owner(at)postgresql(dot)org
10-12-2002 20:03


To: "Vince Vielhaber" <vev(at)michvhf(dot)com>
cc: "Postgresql PHP" <pgsql-php(at)postgresql(dot)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(at)michvhf(dot)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.

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

Browse pgsql-php by date

  From Date Subject
Next Message Vince Vielhaber 2002-12-10 20:20:21 Re: Large file upload
Previous Message Kelvin Varst 2002-12-10 19:03:52 Re: Large file upload