test new design 03

This commit is contained in:
TronoSfera 2026-03-29 22:10:09 +03:00
parent 48e25dd55c
commit 00ff927dff

View file

@ -2555,7 +2555,10 @@ const NEW_REQUEST_CLIENT_OPTION = "__new_client__";
body: file,
});
if (!putResp.ok) {
throw new Error("Не удалось загрузить файл в хранилище");
const errorText = (await putResp.text()).trim();
throw new Error(
`Не удалось загрузить файл в хранилище (${putResp.status}${errorText ? `: ${errorText.slice(0, 200)}` : ""})`
);
}
const done = await api("/api/admin/uploads/complete", {
method: "POST",