downloading a file now sets the filename in header correctly