|
@@ -112,14 +112,6 @@ function p5TA_uploadFiles(files, ns, pk) {
|
|
|
method: 'POST',
|
|
method: 'POST',
|
|
|
body: formData,
|
|
body: formData,
|
|
|
credentials: 'same-origin',
|
|
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) {
|
|
}).then(function (response) {
|
|
|
return response.json()
|
|
return response.json()
|
|
|
}).then(function (response) {
|
|
}).then(function (response) {
|