This commit is contained in:
2023-04-26 21:15:27 +10:00
parent 4a83c7e171
commit bacf35bb4b
3 changed files with 22 additions and 4 deletions

View File

@@ -288,7 +288,7 @@ watch(
() => form.controls.file.value,
(newValue) => {
fileData.mime_type = (newValue as File).type;
fileData.size = (newValue as File).size.toString();
fileData.size = (newValue as File).size;
if ((form.controls.title.value as string).length == 0) {
form.controls.title.value = (newValue as File).name