Skip to content

Commit

Permalink
fix: Correct value for filesizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Golbolco authored Dec 11, 2024
1 parent 16559f3 commit ee0517c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion react_main/src/pages/Play/Decks/CreateDeck.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function CreateDecks() {
})
.catch((e) => {
if (e.response == null || e.response.status == 413)
errorAlert("File too large, must be less than 2 MB.");
errorAlert("File too large, must be less than 1 MB.");
else errorAlert(e);
});
}
Expand Down
2 changes: 1 addition & 1 deletion react_main/src/pages/User/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default function Profile() {
})
.catch((e) => {
if (e.response == null || e.response.status === 413)
errorAlert("File too large, must be less than 2 MB.");
errorAlert("File too large, must be less than 1 MB.");
else errorAlert(e);
});
}
Expand Down
2 changes: 1 addition & 1 deletion routes/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ router.post("/banner", async function (req, res) {
res.status(500);

if (e.message.indexOf("maxFileSize exceeded") == 0)
res.send("Image is too large, banner must be less than 2 MB");
res.send("Image is too large, banner must be less than 1 MB");
else {
logger.error(e);
res.send("Error uploading avatar image");
Expand Down

0 comments on commit ee0517c

Please sign in to comment.