uppy/packages/@uppy/core/src
Artur Paikin 3967e05fbc
Add uppy.passesRestrictions(file) and disallow selecting files that don’t pass restrictions in providers (#2602)
* add passesRestrictions(file) and utilize it in provider-views

* disallow selecting more than maxNumberOfFiles

* add restriction reason and include folders

* let’s leave folder out of this for now — otherwise not only you can’t select them, but navigate too

* disallow selecting if totalCurrentSelectionFileSize is over maxTotalFileSize

* handle maxNumberOfFiles not being set 🙈

* fix totalCurrentSelectionFileSize and handle no file.name

* support grid in restrictions

* refactor the restriction reason logic, rename to validateRestrictions, wrap icon in a container

* add uppyFileSizes 🙈

* get rid of canSelectMore in favor of validateRestrictions (file, files)

* handle shift key bulk selection

* remove unused props

* use infoTimeout
2020-11-11 21:41:16 +00:00
..
__snapshots__ Upgrade standard to v14 (#1860) 2019-10-09 14:53:02 +02:00
_common.scss Refactor FileProgress component (#2303) 2020-06-06 04:10:01 +02:00
_utils.scss Dark mode design improvements (#2232) 2020-05-05 18:02:24 +02:00
_variables.scss Dark mode design improvements (#2232) 2020-05-05 18:02:24 +02:00
index.js Add uppy.passesRestrictions(file) and disallow selecting files that don’t pass restrictions in providers (#2602) 2020-11-11 21:41:16 +00:00
index.test.js Add uppy.passesRestrictions(file) and disallow selecting files that don’t pass restrictions in providers (#2602) 2020-11-11 21:41:16 +00:00
loggers.js core: Always log errors (#2029) 2020-01-28 18:45:23 +03:00
Plugin.js core: add some more suggestions to the incorrect target warning (#2242) 2020-05-15 20:41:39 +02:00
Plugin.test.js Fix setPluginState 2018-07-19 13:02:23 +02:00
style.scss Move stylesheets into packages. 2018-06-18 12:35:47 +02:00
supportsUploadProgress.js Add supportsUploadProgress() tests 2018-12-03 14:35:52 +01:00
supportsUploadProgress.test.js Add supportsUploadProgress() tests 2018-12-03 14:35:52 +01:00