Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

Here is my HTML form:

<form name="myForm" ng-submit=""> 

<input ng-model='file' type="file"/> 

<input type="submit" value='Submit'/> 

</form>

I want to upload an image from a local machine and want to read the content of the uploaded file. All this I want to do using AngularJS.

When I try to print the value of $scope.file it comes as undefined.

1 Answer

0 votes
by (106k points)

For uploading the file using AngularJS you can use <iframe> or Flash.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...