Spaces:
Sleeping
Sleeping
Update static/index.html
Browse files- static/index.html +1 -1
static/index.html
CHANGED
@@ -331,7 +331,7 @@ function previewImage(event) {
|
|
331 |
const uploadButton = document.querySelector('button');
|
332 |
|
333 |
// Check if file size is larger than 500 MB (500 * 1024 * 1024 bytes)
|
334 |
-
if (file.size >
|
335 |
imagePreview.innerHTML = `<p style="color: white;">Please upload an image smaller than 1000 KB.</p>`;
|
336 |
uploadButton.disabled = true; // Disable the button
|
337 |
return;
|
|
|
331 |
const uploadButton = document.querySelector('button');
|
332 |
|
333 |
// Check if file size is larger than 500 MB (500 * 1024 * 1024 bytes)
|
334 |
+
if (file.size > 20000 * 1024) {
|
335 |
imagePreview.innerHTML = `<p style="color: white;">Please upload an image smaller than 1000 KB.</p>`;
|
336 |
uploadButton.disabled = true; // Disable the button
|
337 |
return;
|