Fixed #7180 - FileUpload shouldn't post to url if none is provided

pull/7197/head
tugcekucukoglu 2025-02-05 12:00:02 +03:00
parent 0158f03002
commit 41bbf66544
1 changed files with 9 additions and 7 deletions

View File

@ -222,6 +222,7 @@ export default {
} }
}; };
if (this.url) {
xhr.open('POST', this.url, true); xhr.open('POST', this.url, true);
this.$emit('before-send', { this.$emit('before-send', {
@ -233,6 +234,7 @@ export default {
xhr.send(formData); xhr.send(formData);
} }
}
}, },
clear() { clear() {
this.files = []; this.files = [];