dropzone
dropzone copied to clipboard
Possible error in docs for max file size
Describe the bug
The docs state to use bytes
for maxFilesize
, but the code appears to want mb
To Reproduce My config is;
const config: DropzoneOptions = {
url: '/target-url',
parallelUploads: 20,
previewTemplate: previewTemplate,
previewsContainer: `#${previewId.value}`,
clickable: `#${id.value} .select-files`,
maxFilesize: maxFileSize.value * 1024 * 1024, // (maxFileSize.value = 1mb)
};
Expected behavior EIther docs should state mb, or the code should be updated to use bytes
Browser / OS:
- OS & Device: OS X 10.15.7
- Browser Chrome
- Version 108
obvious mistake, I found it too.