This commit is contained in:
@kirill.komarov
2026-05-11 20:42:26 +05:00
parent 212484d062
commit 130c12a1d3
9 changed files with 48 additions and 9 deletions
@@ -0,0 +1,6 @@
/** Должно совпадать с `getProductImageMaxFileBytes()` на сервере (по умолчанию 20 МБ). */
export const ADMIN_UPLOAD_IMAGE_MAX_BYTES = 20 * 1024 * 1024
export function formatAdminImageMaxSizeHint(): string {
return `${Math.round(ADMIN_UPLOAD_IMAGE_MAX_BYTES / (1024 * 1024))} МБ`
}