We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent effa589 commit 44c4411Copy full SHA for 44c4411
src/FileUpload.vue
@@ -1037,7 +1037,10 @@ export default defineComponent({
1037
}
1038
1039
// @ts-ignore
1040
- form.append(this.name, file.file, file.file.name || file.file.filename || file.name)
+ // Moved file.name as the first option to set the filename of the uploaded file, since file.name
1041
+ // contains the full (relative) path of the file not just the filename as in file.file.filename
1042
+ // @ts-ignore
1043
+ form.append(this.name, file.file, file.name || file.file.name || file.file.filename)
1044
const xhr = new XMLHttpRequest()
1045
xhr.open('POST', file.postAction || '')
1046
return this.uploadXhr(xhr, file, form)
0 commit comments