From 2d28031de2c5eabf4b11c302de72077094210b54 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 23 Aug 2013 09:40:06 +0000 Subject: [PATCH] fix(filepicker) add mimetype "", rm default ".txt" ext --- lib/client/storage/_filepicker.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/client/storage/_filepicker.js b/lib/client/storage/_filepicker.js index 0242a704..e29e08f4 100644 --- a/lib/client/storage/_filepicker.js +++ b/lib/client/storage/_filepicker.js @@ -16,10 +16,14 @@ var CloudCmd, Util, DOM, $, filepicker; var lContent = pParams.data, lName = pParams.name; - filepicker.store(lContent, {filename: lName}, function(pFPFile){ - Util.log(pFPFile); - - filepicker.exportFile(pFPFile, Util.log, Util.log); + filepicker.store(lContent, { + mimetype: '', + filename: lName + }, + function(pFPFile){ + Util.log(pFPFile); + + filepicker.exportFile(pFPFile, Util.log, Util.log); }); };