From a2493f80a973b24ad3d3affda945c437b98c2d2e Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 23 Feb 2015 11:57:16 +0100 Subject: [PATCH] Add support for zip files --- boot/boot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/boot/boot.js b/boot/boot.js index ddca678da..aa1e0f5bd 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1771,6 +1771,7 @@ $tw.boot.startup = function(options) { $tw.utils.registerFileType("application/javascript","utf8",".js"); $tw.utils.registerFileType("application/json","utf8",".json"); $tw.utils.registerFileType("application/pdf","base64",".pdf",{flags:["image"]}); + $tw.utils.registerFileType("application/zip","base64",".zip"); $tw.utils.registerFileType("image/jpeg","base64",[".jpg",".jpeg"],{flags:["image"]}); $tw.utils.registerFileType("image/png","base64",".png",{flags:["image"]}); $tw.utils.registerFileType("image/gif","base64",".gif",{flags:["image"]});