Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dictDefaultMessage is shown even when dropzone is not empty after displaying existing files #2278

@3bood-kr

Description

@3bood-kr

So I'm using Laravel, and the problem is when I preload files from the session (old values when validation fails) using displayExistingFile, the number of files length doesn't get updated and stays at zero. This leads to whenever I have more than one preloaded file, and I remove one of them, the dz-started class gets removed from Dropzone and leads to showing the dictDefaultMessage even though Dropzone is not empty!
Here is an example:

ezgif com-video-to-gif

I managed to partially fix this by updating this.files.length manually but still having some issues. Am I missing anything?

Browser / OS:

  • OS: windows 10
  • Browser: Firefox Developer Edition
  • Version 5.9.3

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