|
|
@ -700,10 +700,21 @@ export default {
|
|
|
|
self.page = 2;
|
|
|
|
self.page = 2;
|
|
|
|
}, 300);
|
|
|
|
}, 300);
|
|
|
|
}).catch(function(e) {
|
|
|
|
}).catch(function(e) {
|
|
|
|
self.uploading = false;
|
|
|
|
switch(e.response.status) {
|
|
|
|
io.value = null;
|
|
|
|
case 451:
|
|
|
|
swal('Oops, something went wrong!', 'An unexpected error occurred.', 'error');
|
|
|
|
self.uploading = false;
|
|
|
|
self.page = 2;
|
|
|
|
io.value = null;
|
|
|
|
|
|
|
|
swal('Banned Content', 'This content has been banned and cannot be uploaded.', 'error');
|
|
|
|
|
|
|
|
self.page = 2;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
self.uploading = false;
|
|
|
|
|
|
|
|
io.value = null;
|
|
|
|
|
|
|
|
swal('Oops, something went wrong!', 'An unexpected error occurred.', 'error');
|
|
|
|
|
|
|
|
self.page = 2;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
io.value = null;
|
|
|
|
io.value = null;
|
|
|
|
self.uploadProgress = 0;
|
|
|
|
self.uploadProgress = 0;
|
|
|
|