sql - File upload and display image in angularjs -
how upload image in angularjs , store path sql server , display in asp.net mvc application using angularjs.
i have been in situation , how handled used this directive image in controller , send request action in asp.net mvc. save file on disk , save path in database. below example:
public void uploadimage() { httppostedfilebase file = request.files["uploadedimage"]; // write code save image string uploadedpath = server.mappath("~/") + file.filename; file.saveas(uploadedpath); //save uploadedpath in database }
Comments
Post a Comment