[galaxy-dev] inconsistent use of tempfile.mkstemp during upload causes problems