<el-upload class="upload" action="http://127.0.0.1:5000/upload/email" :file-list="fileList" >
Utilizing the Element UI library, I am attempting to pass an email value to the 'action' URL in the format of base_url/upload/${email}
. However, this method is not effectively binding the value as it interprets the entire URL as a string.
export default {
name: "**",
data() {
return {
base_url: "http://127.0.0.1:5000",
email: email,
fileList: []
}
}
What steps should be taken to successfully bind the data to the action for making a POST request using el-upload with the provided base_url and email data?