Fixed #7180 - FileUpload shouldn't post to url if none is provided
parent
0158f03002
commit
41bbf66544
|
@ -222,16 +222,18 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
xhr.open('POST', this.url, true);
|
if (this.url) {
|
||||||
|
xhr.open('POST', this.url, true);
|
||||||
|
|
||||||
this.$emit('before-send', {
|
this.$emit('before-send', {
|
||||||
xhr: xhr,
|
xhr: xhr,
|
||||||
formData: formData
|
formData: formData
|
||||||
});
|
});
|
||||||
|
|
||||||
xhr.withCredentials = this.withCredentials;
|
xhr.withCredentials = this.withCredentials;
|
||||||
|
|
||||||
xhr.send(formData);
|
xhr.send(formData);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clear() {
|
clear() {
|
||||||
|
|
Loading…
Reference in New Issue