Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

How do I prevent Save as .csv file alwways appending .txt to the filename if I choose the "Open with" action?

  • 2 trả lời
  • 2 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi birdwes

more options

My ASP csv download page is calling:

Response.Clear Response.AddHeader "content-disposition","attachment; filename=filename.csv" Response.ContentType = "Content-Type: text/csv; charset=utf-8"

When I click on the link to this ASP page the Firefox "Opening filename.csv" dialog appears:

filename.csv which is a: Text Document

If I choose "Open with <Any Application name>" the file is always opened by the application with a .txt appended to the filename, which in this particular case prevents my spreadsheet software from correctly opening it.

a) How do I prevent the .txt being appended to the file name if OpenWith is used?

b) Is there a way to add a CSV type to the Tools->Options Applications Content Type list to prevent the "which is a: Text Document" message?

This behaviour does not happen in Chrome, Opera, Safari or IE.

My ASP csv download page is calling: Response.Clear Response.AddHeader "content-disposition","attachment; filename=filename.csv" Response.ContentType = "Content-Type: text/csv; charset=utf-8" When I click on the link to this ASP page the Firefox "Opening filename.csv" dialog appears: filename.csv which is a: Text Document If I choose "Open with <Any Application name>" the file is always opened by the application with a .txt appended to the filename, which in this particular case prevents my spreadsheet software from correctly opening it. a) How do I prevent the .txt being appended to the file name if OpenWith is used? b) Is there a way to add a CSV type to the Tools->Options Applications Content Type list to prevent the "which is a: Text Document" message? This behaviour does not happen in Chrome, Opera, Safari or IE.

Được chỉnh sửa bởi birdwes vào

Giải pháp được chọn

It was a fault of the server, not Firefox.

The ASP should have been:

Response.ContentType = "text/csv; charset=utf-8"

Fixed!

thanks

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (2)

more options

Is there no entry in Application Options for text/csv?

orange Firefox button or classic Tools menu > Options > Applications

In the search box, type csv and pause while Firefox filters the list.

If you have Microsoft Office installed, the dialog typically lists "Microsoft Office Excel Comma Separated Values File (text/csv)" (you need to display the mouseover tooltip to see all of it).

I assume Firefox extracts this information from the registry. If you want to reset the Application Options and have Firefox rebuild them, the method is described in this article:

https://support.mozilla.org/en-US/kb/cant-download-or-save-files#w_reset-download-actions-for-all-file-types ("Reset download actions for all file types")

Được chỉnh sửa bởi jscher2000 - Support Volunteer vào

more options

Giải pháp được chọn

It was a fault of the server, not Firefox.

The ASP should have been:

Response.ContentType = "text/csv; charset=utf-8"

Fixed!

thanks

Được chỉnh sửa bởi birdwes vào