Browse Source

Better error handling for image upload

pull/135/head
Jose Olarte III 4 weeks 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,
);
this.uploading = false;
this.close();
return;
}
formData.append("image", this.blob, this.fileName || "photo.jpg");
@ -683,6 +684,7 @@ export default class ImageMethodDialog extends Vue {
);
this.uploading = false;
this.blob = undefined;
this.close();
}
}

Loading…
Cancel
Save