how to accept image file as input and how to send it to server code example
Example: input file define type
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">