Browse Source

Add yaml file type

Jessica Jiang 7 years ago
parent
commit
9a5364ec36
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/core/Utils.js

+ 3 - 1
src/core/Utils.js

@@ -124,7 +124,9 @@ function getFileType (file) {
     'svg': 'image/svg+xml',
     'jpg': 'image/jpeg',
     'png': 'image/png',
-    'gif': 'image/gif'
+    'gif': 'image/gif',
+    'yaml': 'text/yaml',
+    'yml': 'text/yaml'
   }
 
   const fileExtension = file.name ? getFileNameAndExtension(file.name).extension : null