Selaa lähdekoodia

fixed error msgs in upload - removed checkStatus

Piotr Labudda 8 vuotta sitten
vanhempi
commit
9e7f458050
1 muutettua tiedostoa jossa 0 lisäystä ja 8 poistoa
  1. 0 8
      SE/se-lib/TableAjax.php.upload.js

+ 0 - 8
SE/se-lib/TableAjax.php.upload.js

@@ -112,14 +112,6 @@ function p5TA_uploadFiles(files, ns, pk) {
 		method: 'POST',
 		body: formData,
 		credentials: 'same-origin',
-	}).then(function checkStatus(response) {
-		if (response.status >= 200 && response.status < 300) {
-			return response
-		} else {
-			var error = new Error(response.statusText)
-			error.response = response
-			throw error
-		}
 	}).then(function (response) {
 		return response.json()
 	}).then(function (response) {