Connecting Tech Pros Worldwide Help | Site Map

file upload problem

Perttu Pulkkinen
Guest
 
Posts: n/a
#1: Jul 17 '05
We have a service where users can send advertisements with image. It has
worked okay, except according to our testing, images greater than 500 kb
lead to "page cannot be found" - error.

I have gathered some of the "important looking" php settings from servers
phpinfo(). In all of these cases local value and master value are the same.

magic_quotes_gpc = On
max_execution_time = 30
max_input_time = 60
memory_limit = 8 M
post_max_size = 8 M
upload_max_filesize = 2 M

I would like to ask your opinions: what is the reason?

- Perttu P, Finland


Jari
Guest
 
Posts: n/a
#2: Jul 17 '05

re: file upload problem


"Perttu Pulkkinen" <perttu.pulkkinen@co.jyu.fi> wrote in message
news:aNIVb.337$KI.53@read3.inet.fi...[color=blue]
> We have a service where users can send advertisements with image. It has
> worked okay, except according to our testing, images greater than 500 kb
> lead to "page cannot be found" - error.
>
> I have gathered some of the "important looking" php settings from servers
> phpinfo(). In all of these cases local value and master value are the[/color]
same.[color=blue]
>
> magic_quotes_gpc = On
> max_execution_time = 30
> max_input_time = 60
> memory_limit = 8 M
> post_max_size = 8 M
> upload_max_filesize = 2 M
>
> I would like to ask your opinions: what is the reason?
>
> - Perttu P, Finland[/color]

Have you tried increasing the execution time. Those big files might cause
some timeouts..
Just a guess though ;D


Perttu Pulkkinen
Guest
 
Posts: n/a
#3: Jul 17 '05

re: file upload problem



"Jari" <not@here.fi> kirjoitti viestissä news:c08pg4$lgk$1@news.cc.tut.fi...[color=blue]
> "Perttu Pulkkinen" <perttu.pulkkinen@co.jyu.fi> wrote in message[/color]
[color=blue]
> Have you tried increasing the execution time. Those big files might cause
> some timeouts..
> Just a guess though ;D[/color]

Probably it wouldn't help, because error comes in less than 30 seconds.


Juha Suni
Guest
 
Posts: n/a
#4: Jul 17 '05

re: file upload problem


Perttu Pulkkinen wrote:[color=blue]
> We have a service where users can send advertisements with image. It
> has worked okay, except according to our testing, images greater than
> 500 kb lead to "page cannot be found" - error.
>
> I have gathered some of the "important looking" php settings from
> servers phpinfo(). In all of these cases local value and master value
> are the same.
>
> magic_quotes_gpc = On
> max_execution_time = 30
> max_input_time = 60
> memory_limit = 8 M
> post_max_size = 8 M
> upload_max_filesize = 2 M
>
> I would like to ask your opinions: what is the reason?[/color]

If the file upload terminates instantly (without actually waiting to
transfer a part of the file), this is definately an Apache issue. See my
earlier posting from last April about the issue:
http://tinyurl.com/2w828

In short:
The answer is in /httpd/conf/httpd.conf

Look for something like:

# Cause the PHP interpreter handle files with a .php extension.
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>

And Increase the "LimitRequestBody" value, restart apache and enjoy.

--
Suni

Closed Thread