fix file size limit
This commit is contained in:
@@ -1809,6 +1809,13 @@ export async function uploadAdminAppRelease(
|
||||
|
||||
if (!response.ok) {
|
||||
const body = await response.json().catch(() => ({}));
|
||||
if (response.status === 413) {
|
||||
throw new ApiError(
|
||||
'Файл слишком большой для загрузки (лимит сервера). Максимальный размер APK — 350 МБ. Попросите администратора обновить nginx: ./install.sh --fix-proxy',
|
||||
413,
|
||||
'UPLOAD_TOO_LARGE'
|
||||
);
|
||||
}
|
||||
const message = typeof body?.message === 'string' ? body.message : 'Не удалось загрузить релиз';
|
||||
throw new ApiError(message, response.status, 'UPLOAD_FAILED');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user