uppy
uppy copied to clipboard
DragDrop Restrictions on drag
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
https://github.com/transloadit/uppy/issues/607
Can you create a reproducible example why this isn't working? What plugins are you using? I'm not sure I understand.
Closing this but we can continue the discussion if needed