[FIX] Invalid MIME type when uploading audio files (#18426)
* Fix invalid mime type when uploading audio files * Add migration.pull/18452/head
parent
cf81e7fe85
commit
f03a20a9da
@ -0,0 +1,15 @@ |
||||
import { Migrations } from '../../../app/migrations/server'; |
||||
import Uploads from '../../../app/models/server/models/Uploads'; |
||||
|
||||
Migrations.add({ |
||||
version: 202, |
||||
up() { |
||||
Promise.await(Uploads.model.rawCollection().updateMany({ |
||||
type: 'audio/mp3', |
||||
}, { |
||||
$set: { |
||||
type: 'audio/mpeg', |
||||
}, |
||||
})); |
||||
}, |
||||
}); |
Loading…
Reference in new issue