Files
openmotion/shared/asset-limits.ts
open-design-crew[bot] 6af39d822f fix: enforce a strict 500 MB asset import limit (#286)
Use an exact 500,000,000-byte cap for local asset imports and Studio upload requests. Keep tool metadata, documentation and regression coverage aligned.
2026-11-11 20:47:45 +08:00

6 lines
187 B
TypeScript

export const MAX_ASSET_BYTES = 500_000_000;
export function isAssetFileWithinLimit(file: { isFile(): boolean; size: number }) {
return file.isFile() && file.size <= MAX_ASSET_BYTES;
}