HTML <form action="#"> <label class="col-form-label">Display Picture <span class="text-danger">*</span></label> <input type="file" id="Picfile" name="pic" class="form-control"> </form> Explanation This will allow user to upload file as the input type is file.