From 5c5a6b963d22b8c2c8346b928af3e0540a4e1be1 Mon Sep 17 00:00:00 2001 From: ClemDee Date: Thu, 18 Jul 2019 16:07:14 +0200 Subject: [PATCH] Fix defaults options for folder upload --- www/common/sframe-common-file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/sframe-common-file.js b/www/common/sframe-common-file.js index 7605ad85d..9af9ab18a 100644 --- a/www/common/sframe-common-file.js +++ b/www/common/sframe-common-file.js @@ -413,8 +413,8 @@ define([ if (defaultOptions && typeof defaultOptions === "object") { name = defaultOptions.name || file.name; password = defaultOptions.password || undefined; - owned = defaultOptions.owned || true; - forceSave = defaultOptions.forceSave || true; + owned = !!defaultOptions.owned; + forceSave = !!defaultOptions.forceSave; finish(); } // if no default options were passed, ask the user