How to upload file in angular js?



How to upload file in angular js?..

Answer / Santosh Kumar Sah

To upload files in AngularJS, you can use the $http service or Angular's File API. The basic steps involve selecting a file input element, reading the file using FileReader, and then sending it as a POST request.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Explain route configuration? And explain with code?

1 Answers  


What types of ngmodules?

1 Answers  


How does the $resource `get` function work synchronously in angularjs ?

1 Answers  


What is angular @ routeparams?

1 Answers  


What is ng build command?

1 Answers  


What an angular 5 component made of?

1 Answers  


How to do animation with the help of AngularJS?

1 Answers  


What are typings in angular?

1 Answers  


what is the difference between constructor and ngoninit?

1 Answers  


List some inbuilt pipes available in angular

1 Answers  


What is the difference between routermodule.forroot() vs routermodule.forchild()? Why is it important?

1 Answers  


What is impure pipe?

1 Answers  


Categories