Skip to content

Dropzone and LFM don't agree on filesize limit #1254

Open
@Samvdg

Description

@Samvdg

Expected Behavior

When having set a limit on LFM, Dropzone also listens to this limit and doesn't allow files to go through the back-end exceeding this limit by marginal amounts

Actual Behavior

When having a marginal difference (say between 0-100kb) Dropzone somehow accepts this like a leanient teacher accepting a vague answer on a quiz because she's tired. "hmmm close enough" vibes

Steps to Reproduce the Problem

  1. Set limit in php.ini to 2m
  2. Set limit in LFM config to 2048
  3. Upload file of 2091kb
  4. The error message should not be the one on the right in the given image below

Sidenote: Could you make sure dropzone errors are not coming through but instead the proper translated errors of LFM? It'd be a lot more.. expected

Image

Specifications

  • Operating system : Windows 10
  • Laravel version : 9
  • Package version : 2.9.1
  • Screenshots of browser console : not applicable

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