MCPcopy Index your code
hub / github.com/simstudioai/sim / getFileContentType

Function getFileContentType

apps/sim/lib/uploads/utils/file-utils.ts:340–342  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

338 * URL's signed Content-Type header.
339 */
340export function getFileContentType(file: File): string {
341 return resolveFileType(file, { preserveOctetStream: true })
342}
343
344/**
345 * Whether `error` is a DOM `AbortError` (XHR `abort()`, fetch `signal.aborted`,

Callers 7

getPresignedUploadInfoFunction · 0.90
uploadViaPresignedPutFunction · 0.90
uploadViaMultipartFunction · 0.90
uploadPartFunction · 0.90
runUploadStrategyFunction · 0.90
fetchBatchPresignedDataFunction · 0.90
buildUploadedFileFunction · 0.90

Calls 1

resolveFileTypeFunction · 0.85

Tested by

no test coverage detected