Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
126
export
const
isValidFileSize = (file: File): boolean =>
127
file.size <= MAX_SCREENSHOT_SIZE;
Callers
1
FeedbackModal
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected