mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
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.
This commit is contained in:
parent
8306b053bc
commit
0218a54c87
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue