<input id='upload' name="upload" type="file" /> code example Example: input file define type <input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">