MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / isValidFileType

Function isValidFileType

frontend/components/chat-input.tsx:28–30  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

26const MAX_FILES = 5
27
28function isValidFileType(file: File): boolean {
29 return file.type.startsWith("image/") || isPdfFile(file) || isTextFile(file)
30}
31
32function formatFileSize(bytes: number): string {
33 const mb = bytes / 1024 / 1024

Callers 2

validateFilesFunction · 0.85
handleDropFunction · 0.85

Calls 2

isPdfFileFunction · 0.90
isTextFileFunction · 0.90

Tested by

no test coverage detected