Skip to content

Throw a more meaningful error when the upload_max_filesize is exeeded #297

Description

@g105b

If the default php.ini setting of upload_max_filesize is 2M, and a 3M file is uploaded, the exception is Gt\Input\UploadedFileSecurityException. This is something we can test for, and if the file is larger than the smaller limit, we can throw an appropriate error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNon-breaking improvements to existing behaviour

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions