Added status code 201 during upload
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@133429 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a5ad38b8dd
commit
137f05377e
|
@ -614,7 +614,7 @@ public class MultipleDNDUpload extends LayoutPanel implements HasWorskpaceUpload
|
||||||
|
|
||||||
xhr.onreadystatechange=function() {
|
xhr.onreadystatechange=function() {
|
||||||
if (xhr.readyState === 4){ //if complete
|
if (xhr.readyState === 4){ //if complete
|
||||||
if(xhr.status === 200){ //check if "OK" (200)
|
if(xhr.status === 200 || xhr.status === 201){ //check is "OK" (200) or check is "Accepted" (201)
|
||||||
// console.log("status is OK");
|
// console.log("status is OK");
|
||||||
//success
|
//success
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue