TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Junaid Syed
NA
485
130.6k
How can i save image in my project folder in angularjs.
Nov 22 2017 1:15 AM
Here is my HTML code:
<div
class
=
"item form-group"
>
<label
class
=
"control-label col-md-3 col-sm-3 col-xs-12"
for
=
"Image"
>
Upload file
</label>
<div
class
=
"col-md-6 col-sm-6 col-xs-12"
>
<input type=
"file"
id=
"img"
name=
"img"
ng-model=
"VendorsObject.Image"
/>
</div>
</div>
<button id="submit" type="submit" ng-disabled=formAddVendors.$invalid class="btn btn-success">{{VendorButton}}</button>
onclick button the data should go to the below function
$scope.manageVendors =
function
(vendorObject) {
var
createvendor = vendorObject;
createvendor.UserName = globalValues.userName;
var
data = RMSService.insertVendors(globalValues.token, createvendor).then(
function
(response) {
$location.path(
"home/Vendors"
);
},
function
(error) {
console.log(error);
})
}
I can see all the data in vendorsObject in above code but iam not getting image is vendorObject.Please share your ideas.Help me thank you
Reply
Answers (
2
)
How to rediect one component to another component in angular
How to execute methods in a sequence in Angular