mirror of
https://github.com/mue/mue.git
synced 2026-07-18 06:24:17 +02:00
fix: background upload, finish 7.0 translation support
This commit is contained in:
@@ -23,7 +23,7 @@ export default class FileUpload extends PureComponent {
|
||||
});
|
||||
|
||||
const settingsSize = new TextEncoder().encode(JSON.stringify(settings)).length;
|
||||
if (videoCheck(file) === true) {
|
||||
if (videoCheck(file.type) === true) {
|
||||
if (settingsSize + file.size > 4850000) {
|
||||
return toast(this.getMessage('toasts.no_storage'));
|
||||
}
|
||||
@@ -32,7 +32,7 @@ export default class FileUpload extends PureComponent {
|
||||
}
|
||||
|
||||
// todo: change number
|
||||
compressAccurately(file, 200).then(async (res) => {
|
||||
compressAccurately(file, 300).then(async (res) => {
|
||||
if (settingsSize + res.size > 4850000) {
|
||||
return toast(this.getMessage('toasts.no_storage'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user