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

Commit

Permalink
fix: max file size
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkloock committed Oct 28, 2024
1 parent 4ab9c4b commit 7b2300f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/emote-upload/EmoteUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

<div class="requirements">
<strong>Limits</strong>
<p>File size: 7MB</p>
<p>File size: 7MiB</p>
<p>Image dimensions: 1000x1000</p>
<p>Image frames: 1000</p>
</div>
Expand Down Expand Up @@ -221,8 +221,8 @@ const handleFile = async (file: File) => {
};
}
if (file.size >= 7e6) {
uploadError.value = "File is larger than 7MB";
if (file.size >= 7 * 1024 * 1024) {
uploadError.value = "File is larger than 7MiB";
}
mime = file.type;
Expand Down

0 comments on commit 7b2300f

Please sign in to comment.