|
@@ -354,6 +354,14 @@ export default [
|
|
size: file.size,
|
|
size: file.size,
|
|
data: buffer,
|
|
data: buffer,
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ // Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1240259
|
|
|
|
+ if (browserService.getBrowser().firefox) {
|
|
|
|
+ if (fileMessageData.name.endsWith('.ogg') && fileMessageData.fileType === 'video/ogg') {
|
|
|
|
+ fileMessageData.fileType = 'audio/ogg';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
fileMessages.push(fileMessageData);
|
|
fileMessages.push(fileMessageData);
|
|
});
|
|
});
|
|
scope.submit('file', fileMessages);
|
|
scope.submit('file', fileMessages);
|