Fixed #7180 - FileUpload shouldn't post to url if none is provided
parent
0158f03002
commit
41bbf66544
|
@ -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 = [];
|
||||||
|
|
Loading…
Reference in New Issue