• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Download csv file

Guest
Jul 20, 2006 Jul 20, 2006

Copy link to clipboard

Copied

I use this line to download a csv file.

<CFLOCATION URL="c:\file.csv" Addtoken="No">

It works as intended in the production environment. The save or open box is showen and if open is clicked Excel opens the csv file.

But when this is run locally(development) no box is shown and the file opens up in the browser like:

EmployeeId;Name;Firstname;Lastname;Infix "876478";"Albert Vergeer";"Albert";"Vergeer";"" "7";"Ingrid Mol";"Ingrid";"Mol";"" "4";"Stephanie Harmsen-Kuhl";"Stephanie";"Harmsen-Kuhl";"" "6";"Susanne Kimkes";"Susanne";"Kimkes";"" "8";"Taco Morelisse";"Taco";"Morelisse";""

Why is that? Is it because I'm running the build in webserver locally and ms iis in production?
Can't the build in web server not handle this?

How can I make it work on the locally?
TOPICS
Advanced techniques

Views

186

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 20, 2006 Jul 20, 2006

Copy link to clipboard

Copied

LATEST
Not clear how it can work at all. CFLOCATION accepts URL (virtual path). Did you mean CFCONTENT?

In general, how client's browser treats the content is defined by the "Content-Disposition" HTTP header that you can add with CFHEADER. By default, it is "inline" - should be displayed in the browser, rather than saved.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation