js/core/file.js
// Creating a id for every file that is opend to keep it unique
Creating a id for every file that is opend to keep it unique
Creating a id for every file that is opend to keep it unique
function createIdentifier(file){
    var result = "";
    var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    var charactersLength = characters.length;
    result = file.name + "_" + file.extension + "_";
    for ( var i = 0; i < 6; i++ ) {
      result += characters.charAt(Math.floor(Math.random() * charactersLength));
    }
    return result;
  }
function createIdentifier ( file ) { var result = "" ; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' ; var charactersLength = characters . length ; result = file . name + "_" + file . extension + "_" ; for ( var i = 0 ; i < 6 ; i ++ ) { result += characters . charAt ( Math . floor ( Math . random ( ) * charactersLength ) ) ; } return result ; }
Creating a id for every file that is opend to keep it unique
Creating a id for every file that is opend to keep it unique