Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/store/asset-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ const ACCEPTED_TYPES = new Set([
"application/octet-stream",
])

const MAX_SIZE_BYTES = 100 * 1024 * 1024

function inferAssetKind(file: File): AssetKind | null {
const mimeType = file.type.toLowerCase()
const fileName = file.name.toLowerCase()
Expand Down Expand Up @@ -79,12 +77,6 @@ function validateFile(file: File): AssetKind {
)
}

if (file.size > MAX_SIZE_BYTES) {
throw new Error(
`File is too large (${(file.size / 1024 / 1024).toFixed(1)} MB). Maximum size is 100 MB.`
)
}

return kind
}

Expand Down
Loading