Merge pull request #877 from ethereum/fixImportFile

fix filename check
pull/1/head
yann300 7 years ago committed by GitHub
commit 3c56473bb1
  1. 2
      src/app/files/file-explorer.js

@ -143,7 +143,7 @@ function fileExplorer (appAPI, files) {
function loadFile () {
var fileReader = new FileReader()
fileReader.onload = function (event) {
if (helper.checkSpecialChars(name)) {
if (helper.checkSpecialChars(file.name)) {
modalDialogCustom.alert('Special characters are not allowed')
return
}

Loading…
Cancel
Save