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

Function isPdfFile

frontend/lib/pdf-utils.ts:59–61  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

57 * Check if a file is a PDF
58 */
59export function isPdfFile(file: File): boolean {
60 return file.type === "application/pdf" || file.name.endsWith(".pdf")
61}
62
63/**
64 * Check if a file is a text file

Callers 5

isValidFileTypeFunction · 0.90
validateFilesFunction · 0.90
FilePreviewListFunction · 0.90
handleFileChangeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected