A
A
Aidos692022-03-04 10:09:11
JavaScript
Aidos69, 2022-03-04 10:09:11

It gives an error when sending a post request, I want to send files, but it gives an error "["validation.array"]". How to solve it?

I write code in vue js

And here is the task, you need to send files to the server "user message, lesson id, and file". An error occurs when sending a file, because an array needs to be sent to the server, but the question is how?
I created an array separately and tried to push it there, and then send this array to the server, but I still can’t do it ...

Here is the construction itself in html
6221bac1ec3e5120809682.png

and here is the code
6221bad56c0bc626761390.png

itself herself

6221bc6d53971814949016.png

6221bc4d1351a356648222.png

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