MCPcopy Create free account
hub / github.com/dailydotdev/apps / isValidFileSize

Function isValidFileSize

packages/shared/src/lib/screenshot.ts:126–127  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

124 * Validate that a file is within the size limit.
125 */
126export const isValidFileSize = (file: File): boolean =>
127 file.size <= MAX_SCREENSHOT_SIZE;

Callers 1

FeedbackModalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected