WordPress.org

Support

Support » How-To and Troubleshooting » force csv download to open browse dialog

force csv download to open browse dialog

  • Hi. I’m trying to provide a csv file for download that won’t open up with the data in the browser window, but that can be downloaded as a .csv file through the browse dialog and be saved to the user’s hard drive. I tried using the download monitor plugin but that didn’t change anything.

    Is there a way to force the browse dialog to open?

Viewing 1 replies (of 1 total)
  • In your .htaccess file:
    AddType application/octet-stream .csv

    That should force CSV files to download instead of loading in the browser.

Viewing 1 replies (of 1 total)
  • The topic ‘force csv download to open browse dialog’ is closed to new replies.
Skip to toolbar