user info + max size

This commit is contained in:
2025-10-29 03:31:32 +01:00
parent 52723b200a
commit 961e14bd43
10 changed files with 210 additions and 53 deletions
+4 -4
View File
@@ -37,7 +37,7 @@
</button>
</div>
<p class="text-xs text-base-content/50">
Supported formats: JPG, PNG, GIF (max 10MB each)
Supported formats: JPG, PNG, GIF (max 256MB each)
</p>
</div>
@@ -238,9 +238,9 @@ const isValidFile = (file: File): boolean => {
return false
}
// Check file size (10MB limit)
if (file.size > 10 * 1024 * 1024) {
error.value = `${file.name} is too large (max 10MB)`
// Check file size (256MB limit)
if (file.size > 256 * 1024 * 1024) {
error.value = `${file.name} is too large (max 256MB)`
return false
}