mirror of
https://github.com/rikkaneko/paste.git
synced 2025-06-06 16:45:41 +00:00
Fix bug in file size check in frontpage
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
parent
0ea569d47d
commit
0c6a9a8770
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@
|
|||
if (!!select_file.value.length ^ !!text.value.length) {
|
||||
// Check file size
|
||||
const size = select_file.files[0]?.size ?? 0;
|
||||
if (size <= 0 || size > 10485760) {
|
||||
if (size > 10485760) {
|
||||
alert("Upload file size must not excess 10 MB.");
|
||||
event.preventDefault();
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue