Give transcoded videos the proper file type

This commit is contained in:
Alex Gleason 2025-03-01 16:39:09 -06:00
parent 8c61efd75e
commit 8a94be803d
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -64,7 +64,7 @@ export async function uploadFile(
if (needsTranscode) { if (needsTranscode) {
const stream = transcodeVideo(file.stream()); const stream = transcodeVideo(file.stream());
const transcoded = await new Response(stream).bytes(); const transcoded = await new Response(stream).bytes();
file = new File([transcoded], file.name, file); file = new File([transcoded], file.name, { type: 'video/mp4' });
} }
} }
perf.mark('transcode-end'); perf.mark('transcode-end');