Nosta uploadraja 8 MB → 20 MB

This commit is contained in:
2026-03-08 01:09:07 +02:00
parent d380884248
commit 9872093fb7
3 changed files with 3 additions and 3 deletions

View File

@@ -504,7 +504,7 @@
prev.style.display = 'block'; prev.style.display = 'block';
lbl.classList.add('has-image'); lbl.classList.add('has-image');
} catch (e) { } catch (e) {
showToast('⚠️ Kuvan lataus epäonnistui. Tuetut muodot: JPG, PNG, GIF, WebP.'); showToast('⚠️ Kuvan lataus epäonnistui. Tuetut muodot: JPG, PNG, GIF, WebP (max 20 MB).');
} finally { } finally {
lbl.style.opacity = ''; lbl.style.opacity = '';
} }

View File

@@ -440,7 +440,7 @@ async function uploadImg(input, hiddenId, previewId, labelId) {
prev.style.display = 'block'; prev.style.display = 'block';
lbl.classList.add('has-image'); lbl.classList.add('has-image');
} catch (e) { } catch (e) {
alert('Kuvan lataus epäonnistui. Tuetut muodot: JPG, PNG, GIF, WebP (max 8 MB).'); alert('Kuvan lataus epäonnistui. Tuetut muodot: JPG, PNG, GIF, WebP (max 20 MB).');
} finally { } finally {
lbl.style.opacity = ''; lbl.style.opacity = '';
} }

View File

@@ -5,7 +5,7 @@
*/ */
$allowed_mime = ['image/jpeg', 'image/png', 'image/gif', 'image/webp']; $allowed_mime = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'];
$max_bytes = 8 * 1024 * 1024; // 8 Mt $max_bytes = 20 * 1024 * 1024; // 20 Mt
header('Content-Type: application/json'); header('Content-Type: application/json');