From 03dcb14e45459a3f2666f42aee8fc932fbf20861 Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 9 Nov 2026 14:32:07 +0300 Subject: [PATCH] fix(storages): an ISO chunk answered with an HTML page is not counted as stored When the host did not answer, the storage page redirected the chunk's POST to the pools page; the upload took that HTML as a stored chunk, and on the last one closed as finished without an error. The chunk request now expects JSON, so such an answer shows the upload error and the upload can be resumed. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea --- static/js/storage_page.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/storage_page.js b/static/js/storage_page.js index c741fc1a..df3b9c1f 100644 --- a/static/js/storage_page.js +++ b/static/js/storage_page.js @@ -107,6 +107,9 @@ $(document).ready(function() { data: formData, processData: false, contentType: false, + // anything else is not a stored chunk: a redirect to an HTML page (the host did + // not answer, the session ended) is an error, not a success + dataType: 'json', success: function(data) { if (chunkIndex === 0) { // the job panel follows the upload from here