From 18f239aecb3ed6d505714380692e73430c841579 Mon Sep 17 00:00:00 2001 From: kevinkid Date: Sat, 23 Sep 2017 19:36:50 +0300 Subject: [PATCH] fix for mime.lookup is not a function Please provide access so i can fix both issues --- File.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File.js b/File.js index 5537d71..c25df43 100644 --- a/File.js +++ b/File.js @@ -34,7 +34,7 @@ if (!self.name) { throw new Error("No name"); } - self.type = self.type || mime.lookup(self.name); + self.type = self.type || mime.getType(self.name); if (!self.path) { if (self.buffer) {