Answer the question
In order to leave comments, you need to log in
Angular.js - how to implement form loading with a file?
It is necessary to upload a form with a file to the server with ajax. The client uses angular, so it would be great to find a ready-made directive for anguar.
All the options I found offer to upload the file separately from the rest of the fields, but I need to submit the file along with the rest of the form information. How can this be implemented?
Answer the question
In order to leave comments, you need to log in
angular-file-upload , for example, supports a formData property containing additional data to be submitted to the server. Here is an example.
I will add another well-known plugin for jquery blueimp jquery-file-upload . There are adapters for angularjs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question