uploadfs.js
function (callback) {
        context.basePath = path.replace(/\.\w+$/, '');
        context.workingPath = localPath;

        // Indulge their wild claims about the extension the original
        // should have if any, otherwise provide the truth from identify
        if (path.match(/\.\w+$/)) {
          originalPath = path;
        } else {
          originalPath = path + '.' + context.extension;
        }
        return callback(null);
      }
function (callback) {
        context.basePath = path.replace(/\.\w+$/, '');
        context.workingPath = localPath;

        // Indulge their wild claims about the extension the original
        // should have if any, otherwise provide the truth from identify
        if (path.match(/\.\w+$/)) {
          originalPath = path;
        } else {
          originalPath = path + '.' + context.extension;
        }
        return callback(null);
      }
function ( callback ) { context . basePath = path . replace ( / \.\w+$ / , '' ) ; context . workingPath = localPath ; // Indulge their wild claims about the extension the original // should have if any, otherwise provide the truth from identify if ( path . match ( / \.\w+$ / ) ) { originalPath = path ; } else { originalPath = path + '.' + context . extension ; } return callback ( null ) ; }
Determine base path in uploadfs, working path for temporary files, and final uploadfs path of the original
Determine base path in uploadfs working path for temporary files and final uploadfs path of the original