#219883 report by brianshumate, patch by gdevlugt, webernet: remove code cruft with 'upload_current_file' session variable, which was causing bugs