MCPcopy Create free account
hub / github.com/react-dropzone/react-dropzone / getTooSmallRejectionErr

Function getTooSmallRejectionErr

src/utils/index.js:42–49  ·  view source on GitHub ↗
(minSize)

Source from the content-addressed store, hash-verified

40};
41
42export const getTooSmallRejectionErr = (minSize) => {
43 return {
44 code: FILE_TOO_SMALL,
45 message: `File is smaller than ${minSize} ${
46 minSize === 1 ? "byte" : "bytes"
47 }`,
48 };
49};
50
51export const TOO_MANY_FILES_REJECTION = {
52 code: TOO_MANY_FILES,

Callers 1

fileMatchSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…