rem: if (fields[i].getAttribute("type") == "file") 
add: if ((fields[i].getAttribute("type") == "file") && fields[i].value) 
context:     hasUpload: function() {        var fields = this.fields();        for (var i = 0; i < fields.length; i++) {            if (fields[i].getAttribute("type") == "file")                return true;        }        return false;    },
meta: 5054	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5054/f4d2f7867d5c5cdafc6a9b921e31f5b216c0e6dd/jifty.js/buggy/share/web/static/js/jifty.js