MAX_FILE_SIZE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Bedford

    #1

    MAX_FILE_SIZE

    Until now, the MAX_FILE_SIZE directive wasn't taken when uploading files.

    Since 2-3 days, the browser (IE6) doesn't seem to send files bigger than
    MAX_FILE_SIZE.

    The limited action seems to be browser side, as if the file are bigger than
    the limit, they aren't sent at all.

    I'd like to know if it's really what appens, and how to know the from PHP
    that the file was too large, and inform the user the file hasn't been sent
    because of size ?

    Bob


  • John Dunlop

    #2
    Re: MAX_FILE_SIZE

    Bob Bedford wrote:
    [color=blue]
    > Until now, the MAX_FILE_SIZE directive wasn't taken when uploading files.
    >
    > Since 2-3 days, the browser (IE6) doesn't seem to send files bigger than
    > MAX_FILE_SIZE.[/color]

    My IE6 does send files that are larger than MAX_FILE_SIZE.
    [color=blue]
    > The limited action seems to be browser side, as if the file are bigger than
    > the limit, they aren't sent at all.
    >
    > I'd like to know if it's really what appens, and how to know the from PHP
    > that the file was too large, and inform the user the file hasn't been sent
    > because of size ?[/color]

    There are two errors relating to file size: (1) the file
    exceeds the upload_max_file size directive, and (2) the file
    exceeds the MAX_FILE_SIZE hidden form field. For either to
    occur, the file must be uploaded.



    If a browser decides not to upload a file because it exceeds
    MAX_FILE_SIZE, I should hope it informs the user somehow. I
    don't see how you can tell with PHP why it wasn't sent.

    --
    Jock

    Comment

    • Bob Bedford

      #3
      Re: MAX_FILE_SIZE


      "John Dunlop" <usenet+2004@jo hn.dunlop.name> a écrit dans le message de
      news: MPG.1c8d3adbffd 1409e989872@New s.Individual.NE T...[color=blue]
      > Bob Bedford wrote:
      >[color=green]
      >> Until now, the MAX_FILE_SIZE directive wasn't taken when uploading files.
      >>
      >> Since 2-3 days, the browser (IE6) doesn't seem to send files bigger than
      >> MAX_FILE_SIZE.[/color]
      >
      > My IE6 does send files that are larger than MAX_FILE_SIZE.
      >[color=green]
      >> The limited action seems to be browser side, as if the file are bigger
      >> than
      >> the limit, they aren't sent at all.
      >>
      >> I'd like to know if it's really what appens, and how to know the from PHP
      >> that the file was too large, and inform the user the file hasn't been
      >> sent
      >> because of size ?[/color]
      >
      > There are two errors relating to file size: (1) the file
      > exceeds the upload_max_file size directive, and (2) the file
      > exceeds the MAX_FILE_SIZE hidden form field. For either to
      > occur, the file must be uploaded.
      >
      > http://www.php.net/manual/en/feature...oad.errors.php
      >
      > If a browser decides not to upload a file because it exceeds
      > MAX_FILE_SIZE, I should hope it informs the user somehow. I
      > don't see how you can tell with PHP why it wasn't sent.[/color]

      Couldn't be a fix from M$ ? as this should by a "client side" limit, maybe
      M$ did put a check for not sending large files. This limit is taken since 4
      days now, and about at the same time, I've had a "fix" from M$ (but didn't
      get any detail for the update).

      Just trying to understand.


      Comment

      • John Dunlop

        #4
        Re: MAX_FILE_SIZE

        Bob Bedford wrote:
        [color=blue]
        > Couldn't be a fix from M$ ? as this should by a "client side" limit, maybe
        > M$ did put a check for not sending large files. This limit is taken since 4
        > days now, and about at the same time, I've had a "fix" from M$ (but didn't
        > get any detail for the update).[/color]

        Could be.

        I still think a browser should give a warning if it decides
        not to submit a file because it is larger than the value of
        MAX_FILE_SIZE. It might be worth consulting an IE
        newsgroup.

        --
        Jock

        Comment

        Working...