This commit is contained in:
syuilo 2025-05-13 17:12:01 +09:00
parent 0cb7289eb8
commit 7c065584a1
2 changed files with 5 additions and 1 deletions

View File

@ -555,7 +555,10 @@ function getMenu() {
text: i18n.ts.upload,
icon: 'ti ti-upload',
action: () => {
chooseFileFromPcAndUpload(true, { uploadFolder: folder.value?.id, keepOriginal: true });
chooseFileFromPcAndUpload({
multiple: true,
folderId: folder.value?.id,
});
},
}, {
text: i18n.ts.fromUrl,

View File

@ -32,6 +32,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div :class="$style.itemBody">
<div>{{ ctx.name }}</div>
<div :class="$style.itemInfo">
<span>{{ ctx.file.type }}</span>
<span>{{ bytes(ctx.file.size) }}</span>
<span v-if="ctx.compressedSize">({{ i18n.tsx._uploader.compressedToX({ x: bytes(ctx.compressedSize) }) }} = {{ i18n.tsx._uploader.savedXPercent({ x: Math.round((1 - ctx.compressedSize / ctx.file.size) * 100) }) }})</span>
</div>