mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-04 00:01:35 +08:00
Use an exact 500,000,000-byte cap for local asset imports and Studio upload requests. Keep tool metadata, documentation and regression coverage aligned.
6 lines
187 B
TypeScript
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;
|
|
}
|