Problems related to el-upload of element-ui

problem description

I want to achieve this function: select file upload and send post request to the backend. When requesting, the input field is
savePath: ". The path in
savePath is the absolute path of the file on the computer.

the environmental background of the problems and what methods you have tried

Project is vue+element-ui

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

look forward to clicking upload, and when you send a transaction with the backend, the field sent by the front end is a custom field:

savePath: "absolute path to the local disk of the selected file"

Jan.10,2022

http-request overrides the default upload behavior, and you can customize the upload implementation to write your own logic

.
Menu