Import: mime type detection is unreliable, allow filetype matching too.

master
Tom Hacohen 5 years ago
parent 4f3c8895f3
commit 9ec759bd44

@ -53,13 +53,13 @@ class ImportDialog extends React.Component<PropsType> {
let dropFunction;
if (collectionInfo.type === 'ADDRESS_BOOK') {
acceptTypes = ['text/vcard'];
acceptTypes = ['text/vcard', 'text/directory', 'text/x-vcard', '.vcf'];
dropFunction = this.onFileDropContact;
} else if (collectionInfo.type === 'CALENDAR') {
acceptTypes = ['text/calendar'];
acceptTypes = ['text/calendar', '.ics', '.ical'];
dropFunction = this.onFileDropEvent;
} else if (collectionInfo.type === 'TASKS') {
acceptTypes = ['text/calendar'];
acceptTypes = ['text/calendar', '.ics', '.ical'];
dropFunction = this.onFileDropTask;
}

Loading…
Cancel
Save