Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var file = model.ImageFile;
- if (file != null)
- {
- file.SaveAs(Server.MapPath("/path/" + file.FileName));
- }
- return Json(imageId, JsonRequestBehavior.AllowGet);
- }
- $.ajax({
- type: "Post",
- url: "@Url.Action("RMAImageUpload", "ImageStores")",
- data: formData,
- datatype: "json",
- processData: false,
- contentType: false,
- success: function(response) {
- ClearPreview();
- $("#uploadedImage")
- .append('<img src="/UploadedImage/' + response + '" class="img-responsive thumbnail"/>');
- }
- });
Add Comment
Please, Sign In to add comment