Browse Source

Better error handling for image upload

pull/135/head
Jose Olarte III 1 week ago
parent
commit
b4a6b99301
  1. 2
      src/components/ImageMethodDialog.vue

2
src/components/ImageMethodDialog.vue

@ -629,6 +629,7 @@ export default class ImageMethodDialog extends Vue {
5000, 5000,
); );
this.uploading = false; this.uploading = false;
this.close();
return; return;
} }
formData.append("image", this.blob, this.fileName || "photo.jpg"); formData.append("image", this.blob, this.fileName || "photo.jpg");
@ -683,6 +684,7 @@ export default class ImageMethodDialog extends Vue {
); );
this.uploading = false; this.uploading = false;
this.blob = undefined; this.blob = undefined;
this.close();
} }
} }

Loading…
Cancel
Save