add: if (self.folderid) { appendChildNodes(self.form, INPUT({'type':'hidden', 'name':'parentfolder', 'value':self.folderid})); } 
context:     this.sendform = function (replacefile) {        var localname = self.form.userfile.value;        if (isEmpty(localname)) {            $('uploadformmessage').innerHTML = get_string('filenamefieldisrequired');            return;        }        var destname = self.form.title.value;        if (isEmpty(destname)) {            $('uploadformmessage').innerHTML = get_string('titlefieldisrequired');            return;        }        if (localname.indexOf('/') > -1) {             localname = localname.substring(localname.lastIndexOf('/')+1, localname.length);        }        if (!replacefile && self.fileexists(destname)) {            $('uploadformmessage').innerHTML = get_string('uploadfileexistsreplacecancel');            // Show replace button            setDisplayForElement('inline', self.form.replace);            return;        }        $('uploadformmessage').innerHTML = '';        hideElement(self.form.replace);        // Create iframe in which to load the file        appendChildNodes(self.element,                         createDOM('iframe',{'name':'iframe'+self.nextupload,                                             'id':'iframe'+self.nextupload,                                             'src':'blank.html',                                             'style':'display: none;'}));        setNodeAttribute(self.form, 'target', 'iframe' + self.nextupload);        var collideaction = replacefile ? 'replace' : 'fail';        appendChildNodes(self.form, INPUT({'type':'hidden', 'name':'collideaction', 'value':collideaction}),                         INPUT({'type':'hidden', 'name':'parentfolder', 'value':self.folderid}),                         INPUT({'type':'hidden', 'name':'uploadnumber', 'value':self.nextupload}));        self.form.submit();        // Display upload status        insertSiblingNodesBefore(self.form,            DIV({'id':'uploadstatusline'+self.nextupload},                get_string('uploading',[localname,self.foldername,destname])));        self.nextupload += 1;    }
meta: 5659	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5659/29d05248c6513493a620fe4d0ea8f1399362593c/uploader.js/buggy/htdocs/artefact/file/js/uploader.js