File upload bug fix.