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:
application/pdf
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粉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