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

Function getTooLargeRejectionErr

src/utils/index.js:33–40  ·  view source on GitHub ↗
(maxSize)

Source from the content-addressed store, hash-verified

31};
32
33export const getTooLargeRejectionErr = (maxSize) => {
34 return {
35 code: FILE_TOO_LARGE,
36 message: `File is larger than ${maxSize} ${
37 maxSize === 1 ? "byte" : "bytes"
38 }`,
39 };
40};
41
42export const getTooSmallRejectionErr = (minSize) => {
43 return {

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…