From 06cbabd3735a965abac320c77f368a16fbf31798 Mon Sep 17 00:00:00 2001 From: ClemDee Date: Thu, 18 Jul 2019 12:15:20 +0200 Subject: [PATCH] Add extension in file name in upload options --- www/common/sframe-common-file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/sframe-common-file.js b/www/common/sframe-common-file.js index 8358b7054..d72db01c6 100644 --- a/www/common/sframe-common-file.js +++ b/www/common/sframe-common-file.js @@ -264,7 +264,7 @@ define([ h('h4', Messages.upload_modal_title), UIElements.setHTML(h('label', {for: 'cp-upload-name'}), Messages._getKey('upload_modal_filename', [ext])), - h('input#cp-upload-name', {type: 'text', placeholder: name, value: name}), + h('input#cp-upload-name', {type: 'text', placeholder: file.name, value: file.name}), h('label', {for: 'cp-upload-password'}, Messages.creation_passwordValue), UI.passwordInput({id: 'cp-upload-password'}), h('span', {