Skip to content

Commit

Permalink
Add rar & zip to supported file types
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed May 4, 2019
1 parent f594e77 commit 73f2959
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/helpers/share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ export const supportedFileTypes: ReadonlyArray<string> = [
"doc",
"docx",
"ppt",
"pptx"
"pptx",
"zip",
"rar"
];
export const mimeTypes: any = {
pdf: "application/pdf",
Expand All @@ -15,7 +17,9 @@ export const mimeTypes: any = {
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
ppt: "application/vnd.ms-powerpoint",
pptx:
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
zip: "application/zip",
rar: "application/x-rar-compressed"
};

export const shareFile = (url: string, ext: string) => {
Expand Down

0 comments on commit 73f2959

Please sign in to comment.