From 0218a54c87e89e06016c767b7d8a4f37298f8372 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. --- 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