When I download a CSV file from a blob URL, the downloaded file always has a ".tmp" extension and wrong file name. When downloading the same file manually, the file extension and file name both are correct. Any pointers will be helpful

  • Please share the code snippet. Also, did you try in different browsers?
    – Janaaaa
    Nov 28, 2017 at 7:47

1 Answer 1


You will need to consider setting the Firefox profile with expected mime type for the content to be download.

BrowserOption with Name = "browser.helperApps.neverAsk.saveToDisk" Value = "text/plain, application/vnd.ms-excel, text/csv, application/csv, text/comma-separated-values, application/download, application/octet-stream, binary/octet-stream, application/binary, application/x-unknown"

This worked in my case. When you are manually downloading the file, that time you will need to see for the mime type in developer tools else try using above while creating new Firefox session.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.