code: function (fileName) {
              fileName = (fileName || "").toLowerCase();
              var validExtensions = ["svg", "cdr", "eps", "ai"],
                  fileExtension = fileName.substr(fileName.lastIndexOf('.') + 1);
  
              return validExtensions.indexOf(fileExtension) != -1;
          }
docs: Checks if the file name matches a correct extension for a vector file.
  
  @param {String} fileName
  @returns {boolean}