allowedMimeType not working for doc file and allowedFileType not working for html file #947

Open
opened 2017-12-21 12:56:35 +00:00 by prabhdaffo · 0 comments
prabhdaffo commented 2017-12-21 12:56:35 +00:00 (Migrated from github.com)

--> Allows only HTML file and Doc file is not accepted
allowedMimeType = [
"application/msword",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"text/html"
]

--> Allows only Doc file and HTML file is not accepted
allowedFileType = [
'doc', 'html'
]

--> When used together, it does not select any file type
allowedMimeType = [ "text/html"]
allowedFileType = [ 'doc']

--> Allows only HTML file and Doc file is not accepted **allowedMimeType = [ "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "text/html" ]** --> Allows only Doc file and HTML file is not accepted **allowedFileType = [ 'doc', 'html' ]** --> When used together, it does not select any file type **allowedMimeType = [ "text/html"] allowedFileType = [ 'doc']**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#947