Open rafatower opened 8 years ago
I rechecked the HEAD request to the URL and saw that the underscore is coming directly with the tablename in the Content-Disposition:
It seems that some browsers or tools (like Postman or Typhoeus) are doing these things. I see that if in the filename
parameter of the URL you get rid of points and quotes, the name of the downloaded file is just "public", but the quotes are giving me _public
or _public_
in Chrome, Typhoeus and Postman.
We can improve the name formatting for filenames but providing a different filename
param with the desired name should do the trick, and that's something the client is controlling on this case.
How to reproduce:
Expected: the name of the downloaded file is set to
whosonfirst_region.csv
or sth related to the exported table.Actual: the downloaded file is set to
public.csv
.The thing is that the
Content-Disposition
header sets thefilename
topublic.csv
:Related to https://github.com/CartoDB/cartodb/issues/6609