Skip to content

Should display a valid error message when max upload size exceeds #607

@mayeenulislam

Description

@mayeenulislam
  • Operating system : Windows XP, Windows 10
  • Laravel version : 5.6.16
  • Package version : ~1.8
  • Steps to reproduce your issue :
    • Check the max_file_size in config/lfm.php
    • Try to upload a file exceeding the declaration
    • You will get the following error:

Warning: POST Content-Length of 16687728 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
{ "message": "" }

  • Screenshots of browser console :
    laravel-filemanager-max-upload-size-exceeds

EXPECTED BEHAVIOR

A nice error message like below:

The file exceeds the maximum upload size, and cannot be uploaded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions