dropzone icon indicating copy to clipboard operation
dropzone copied to clipboard

Possible error in docs for max file size

Open nzmattman opened this issue 2 years ago • 1 comments

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

nzmattman avatar Dec 08 '22 03:12 nzmattman

obvious mistake, I found it too.

nsosnsos avatar Dec 13 '22 02:12 nsosnsos