file upload problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Perttu Pulkkinen

    #1

    file upload problem

    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_gp c = On
    max_execution_t ime = 30
    max_input_time = 60
    memory_limit = 8 M
    post_max_size = 8 M
    upload_max_file size = 2 M

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

    - Perttu P, Finland


  • Jari

    #2
    Re: file upload problem

    "Perttu Pulkkinen" <perttu.pulkkin en@co.jyu.fi> wrote in message
    news:aNIVb.337$ KI.53@read3.ine t.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_gp c = On
    > max_execution_t ime = 30
    > max_input_time = 60
    > memory_limit = 8 M
    > post_max_size = 8 M
    > upload_max_file size = 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


    Comment

    • Perttu Pulkkinen

      #3
      Re: file upload problem


      "Jari" <not@here.fi> kirjoitti viestissä news:c08pg4$lgk $1@news.cc.tut. fi...[color=blue]
      > "Perttu Pulkkinen" <perttu.pulkkin en@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.


      Comment

      • Juha Suni

        #4
        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_gp c = On
        > max_execution_t ime = 30
        > max_input_time = 60
        > memory_limit = 8 M
        > post_max_size = 8 M
        > upload_max_file size = 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
        LimitRequestBod y 524288
        </Files>

        And Increase the "LimitRequestBo dy" value, restart apache and enjoy.

        --
        Suni

        Comment

        Working...