Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/UploadAvatarForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const UploadAvatarForm = ({ character, errors }: UploadAvatarFormProps) =
<div class="modal-body" id="avatarUploadModalBody">
<div class="mb-3">
<label for="avatarFileInput" class="form-label">
Choose an image (max 5MB)
Choose an image (max 10MB)
</label>
<input
class="form-control"
Expand Down
2 changes: 1 addition & 1 deletion static/character.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function handleAvatarUpload(characterId) {
}

// Validate file size (5MB)
if (file.size > 5 * 1024 * 1024) {
if (file.size > 10 * 1024 * 1024) {
errorDiv.textContent = 'File too large. Maximum size is 5MB.';
errorDiv.classList.remove('d-none');
return;
Expand Down