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/pdfapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentI also need to add the .eml to the accept attribute
How to find the .eml file type?
I tried application/eml but without success.
Looks like the
.emlfile does not have a mime type. http://www.iana.org/assignments/media-types/media-types.xhtml is not listed here.But since the
acceptattribute accepts mime types and file extensions, you can add.emlto its value. Try this