I am adding date and image to the database. I want to add the date as the footer to the uploaded image.
HTML for image upload
<div class="form-group">
@Html.Label("Photo", htmlAttributes: new { @class = "control-label" })
<div class="col-md-10">
<img id="DocImg" src="~/Upload/DoctorImage/doc-default.png" style="cursor: pointer;" accesskeyclass="edtImg" width="100" height="100" />
<input type="file" id="fileUpload" name="Photo" accept="image/*" />
</div>
</div>
HTML for datepicker
<div class="col-6">
@Html.ValidationSummary(true, "", new { @class = "text-danger"})
<div class="form-group">
@Html.Label("Joining Date", htmlAttributes: new { @class = "control-label col-md-2", @required = "required" })
<div class="col-md-10">
@(Html.Kendo().DatePicker()
.Name("JoiningDate")
.Value("")
.HtmlAttributes(new { style = "width: 100%", required = "true" })
)
@Html.ValidationMessageFor(model => model.JoiningDate, "", new { @class = "text-danger" })
</div>
</div>
</div>
Script for Upload
$(document).ready(function () {
$("#fileUpload").hide();
});
$("#DocImg").click(function () {
$("#fileUpload").trigger('click');
});