Get value of img uploaded into form

I’ve a form to insert to sell. This form have name of object, description, and also possibility of upload photo.
I succesfull upload photo to server and take the name of file and when the upload function is success I put the filename into value of scope. But when I submit the form, the ng-model=“reg.photo” dont pass the filename!
Where is the problem?