How can I find out the file format used for an .eml file that accepts attributes in input type="file"?
P粉674999420
P粉674999420 2024-03-29 13:07:12
0
1
433

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:

  • pdf is application/pdf
  • MS Word is application/vnd.openxmlformats-officedocument.wordprocessingml.document

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粉674999420
P粉674999420

reply all(1)
P粉547420474

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!