Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit 7b2300f

Browse files
committed
fix: max file size
1 parent 4ab9c4b commit 7b2300f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/emote-upload/EmoteUpload.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
<div class="requirements">
7777
<strong>Limits</strong>
78-
<p>File size: 7MB</p>
78+
<p>File size: 7MiB</p>
7979
<p>Image dimensions: 1000x1000</p>
8080
<p>Image frames: 1000</p>
8181
</div>
@@ -221,8 +221,8 @@ const handleFile = async (file: File) => {
221221
};
222222
}
223223
224-
if (file.size >= 7e6) {
225-
uploadError.value = "File is larger than 7MB";
224+
if (file.size >= 7 * 1024 * 1024) {
225+
uploadError.value = "File is larger than 7MiB";
226226
}
227227
228228
mime = file.type;

0 commit comments

Comments
 (0)