Answer the question
In order to leave comments, you need to log in
VueJs + Rails. file upload. Where is the mistake?
I send a file to the API via Axios and formData
Somewhere at the Rails level (before routing) such a beard comes out.
The Internet is silent on this topic.
Save me gentlemen.
Update: This situation occurs in the case of a .jpg file. In the case of .png we have:
Rack::QueryParser::InvalidParameterError (invalid byte sequence in UTF-8):
Answer the question
In order to leave comments, you need to log in
content-type: multipart/form-data; charset=utf-8 try using this header.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question