Skip to content

Commit

Permalink
remove console.log msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Aug 20, 2024
1 parent 62336b4 commit 05421fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/fileupload2.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ function queueFileForDirectUpload(file) {
var fUpload = new fileUpload(file);
let send = true;
let origPath = file.webkitRelativePath.substring(file.webkitRelativePath.indexOf('/') + 1);
console.log("Original Path: " + origPath);

//Remove filename part
let path =origPath.substring(0, origPath.length - file.name.length);
let badPath = (path.match(/^[\w\d_\-\.\\\/ ]*$/)===null);
Expand All @@ -678,7 +678,7 @@ function queueFileForDirectUpload(file) {
}
//Re-Add filename, munge filename if needed
path=path.concat(file.name.replace(/[\/:*?|;#]/g,'_'));
console.log("Final Path: " + path);

//Now check versus existing files
if (path in existingFiles) {
send = false;
Expand Down

0 comments on commit 05421fc

Please sign in to comment.