Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropzone uses maxFilesize as KiB instead of MiB #602

Open
QuingKhaos opened this issue Feb 12, 2016 · 0 comments
Open

Dropzone uses maxFilesize as KiB instead of MiB #602

QuingKhaos opened this issue Feb 12, 2016 · 0 comments

Comments

@QuingKhaos
Copy link

It seems

if (file.size / 1024 > that.options.maxFilesize || file.xhr.status === 413) {
divides the file size only one time by 1024, so it's compared as KiB against the maxFilesize instead of MiB which maxFilesize is supposed to be.

The error is only emitted, when the server errors too, e.g. upload_max_filesize of php is too small. Otherwise the maxFilesize is not checked or not checked as 256 KiB (?). If the file is really over 256 MiB the dropzone errors immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant