[www] optional downgrade

This commit is contained in:
Devin Zuczek
2026-09-19 11:27:01 -04:00
parent 8995000259
commit c7ee2bab53
2 changed files with 60 additions and 16 deletions
+4 -1
View File
@@ -46,7 +46,10 @@ export interface DowngradeStats {
outputBytes: number
}
/** Whether an uploaded scene file is the newer format that needs downgrading first. */
/**
* Whether a scene file is, by its name, the newer format. Only a default: the upload form
* ticks its convert box from this and the owner decides.
*/
export function needsDowngrade(filename: string): boolean {
return filename.toLowerCase().endsWith('.binpb')
}