rem: var result; 
context: function evalFile(param,creator) {   var result;   if (param.uploadError) {      // looks like the file uploaded has exceeded uploadLimit ...      result = getError("fileFileTooBig");   } else if (param.rawfile) {      if (param.rawfile.contentLength == 0) {         // looks like nothing was uploaded ...         result = getError("fileNoUpload");      } else {         var newFile = new file();         // if no alias given try to determine it         if (!param.alias)            param.alias = buildAliasFromFile(param.rawfile);         else if (!isClean(param.alias))            result = getError("noSpecialChars");         // check if alias is already in use         if (this.get(param.alias)) {            var nr = 1;            while (this.get(param.alias + nr))               nr++;            param.alias = param.alias + nr;         }         // store properties necessary for file-creation         newFile.alias = param.alias;         newFile.site = this._parent;         newFile.alttext = param.alttext;         newFile.name = param.alias;         newFile.filesize = param.rawfile.contentLength;         newFile.mimetype = param.rawfile.contentType;         newFile.description = param.description;         var saveTo = getProperty("filePath") + this._parent.alias + "/";         newFile.name = param.rawfile.writeToFile(saveTo,newFile.name);         if (newFile.name) {            // the file is on disk, so we add the file-object            newFile.creator = creator;            newFile.createtime = new Date();            if (this.add(newFile)) {               result = getConfirm("fileCreate",newFile.alias);            } else               result = getError("fileCreate",newFile.alias);         } else            result = getError("fileSave");      }   }   return (result);}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/6e2e859d287fd5be4c11b79da6cc64afc4b29f82/objectFunctions.js/clean/code/FileMgr/objectFunctions.js