Question: I want to upload images on click of img tag.When user Click on image, file input tag will call and user chose any image and set this image to clicked img tag.

How i will achive.Can anyone tell me.

Answer: 
You can try ng-file-upload <https://github.com/danialfarid/ng-file-upload>

1. Create img tag
2. Use directive straight in img tag
try this

```
<img url="#Your image url" alt="click here to add file upload" />
<div id="fileUpload" />

```

and script

```
$('img').click(function () {
AddFileUpload();
 });

function AddFileUpload() {
    $('#fileUpload').append('<input type="file"/>');
}

```

[Demo](http://jsfiddle.net/carunchandran/25xGQ/1/)