WordPress.org

Ready to get started?Download WordPress

Forums

force csv download to open browse dialog (2 posts)

  1. jivyb
    Member
    Posted 5 years ago #

    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?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    In your .htaccess file:
    AddType application/octet-stream .csv

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags