Search code examples
firefoxcsvbrowser-extension

Viewing CSV in Firefox


I'm working on a script that outputs CSV files, and it's a pain to try to open CSV every time I run the script to debug the next step. Is there a way to open CSV directly in FireFox. I know there's a plugin for JSON, but couldn't find a plugin for CSV


Solution

  • Firefox should be able to handle CSV content without a plug-in.
    What content-type are you using in your script?

    header("Content-type: application/csv");
    header("Content-Disposition: attachment; filename=file.csv");