wizardry
This commit is contained in:
@@ -601,7 +601,7 @@ export const handleUpload = async (req, res, self) => {
|
||||
// 4. Audio-only MP4 reclassification probe (only when needed)
|
||||
needsAudioMP4
|
||||
? (async () => {
|
||||
const origExt = file.filename.split('.').pop().toLowerCase();
|
||||
const origExt = file?.filename ? file.filename.split('.').pop().toLowerCase() : (inputUrl ? inputUrl.split('?')[0].split('.').pop().toLowerCase() : '');
|
||||
if (['m4a', 'aac'].includes(origExt)) {
|
||||
return 'audio/mp4'; // Extension-based reclassification
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user