1

I'm using vue.js 2.3 and element-ui.

I'd like to use the upload-file component to send files to my server.

In the doc we can find the action "https://jsonplaceholder.typicode.com/posts/"

Question

I would like to know how can I add a parameter to the action?

Situation

I currently receive an array file with the data of my file but I would like to be able to pass other parameters

1 Answer 1

3

If you look at the list of attributes on the documentation page you linked to, there is a data attribute that lets you specify an object as "addition[al] options of [the] request".

Sign up to request clarification or add additional context in comments.

1 Comment

not able to post data with a file using element UI

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.