fix filename check

pull/1/head
yann300 7 years ago
parent 7987632ffc
commit de021097b1
  1. 2
      src/app/files/file-explorer.js

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

Loading…
Cancel
Save