uppy icon indicating copy to clipboard operation
uppy copied to clipboard

DragDrop Restrictions on drag

Open dkrefta opened this issue 1 year ago • 2 comments

Initial checklist

  • [X] I understand this is a feature request and questions should be posted in the Community Forum
  • [X] I searched issues and couldn’t find anything (or linked relevant results below)

Problem

when I try to drop with restrictions it not working properly

Solution

have a way to have a restrictions for drop: example: ``` .on('ondrop') => { this.uppy.setOptions({ restrictions: { maxTotalFileSize: 1024 * 1024 * 1024, // 1gb maxFileSize: 10 * 1024 * 1024, // 10mb minFileSize: 3 * 1024, // 3kb allowedFileTypes: props.restrictions ? supportedImageTypes : allSupportedTypes, }, }); })


### Alternatives

Same as the example above

dkrefta avatar Sep 20 '22 17:09 dkrefta

https://github.com/transloadit/uppy/issues/607

dkrefta avatar Sep 20 '22 17:09 dkrefta

Can you create a reproducible example why this isn't working? What plugins are you using? I'm not sure I understand.

Murderlon avatar Sep 21 '22 09:09 Murderlon

Closing this but we can continue the discussion if needed

Murderlon avatar Oct 19 '22 20:10 Murderlon