user info + max size
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user