search

Home  >  Q&A  >  body text

How can I find out the file format used for an .eml file that accepts attributes in input type="file"?

I am using file input html element for file upload.

<input type="file" name="data[File][0][attachment]" accept="application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/pdf"style="display:inline;width:70%% !important;" class="file-upload" />

I know this is for:

I also need to add the .eml to the accept attribute

How to find the .eml file type?

I tried application/eml but without success.

P粉674999420P粉674999420272 days ago488

reply all(1)I'll reply

  • P粉547420474

    P粉5474204742024-03-30 10:18:09

    Looks like the .eml file does not have a mime type. http://www.iana.org/assignments/media-types/media-types.xhtml is not listed here.

    But since the accept attribute accepts mime types and file extensions, you can add .eml to its value. Try this

    reply
    0
  • Cancelreply