P
P
Pavgont2018-05-30 08:59:28
Vue.js
Pavgont, 2018-05-30 08:59:28

Laravel-Vue post request with data and file via axios?

There is a large form, about 100 fields, input fields of different types, all data is added to the form object, also in this form there is an addition of a file (rar, zip, pdf). It is necessary to send all this to the server with a request for further validation of the server laravel. I'm trying with formData, but the form itself is passed as a [Object] string. Append each field is not an option, because the object has a large nesting structure. Tell me what are the options for transferring data, maybe a link to a tutorial or an example where this is implemented

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question