mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Give transcoded videos the proper file type
This commit is contained in:
parent
8c61efd75e
commit
8a94be803d
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ export async function uploadFile(
|
|||
if (needsTranscode) {
|
||||
const stream = transcodeVideo(file.stream());
|
||||
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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue