N
Nate Hekman
I have an aspx page that generates a file on the fly for a person to
download. It sends these http headers:
Content-Type: text/plain
Content-Disposition: attachment; filename="myfile.lic"
The file being downloaded is a license file and MUST be stored with that
..lic extension.
If I access this aspx page with IE, it prompts me if I want to open or save
the file. I choose save, and it prompts me for a location and filename, and
the default filename is indeed myfile.lic. But when it actually saves it,
it renames it to myfile.lic.txt.
Very frustrating! Incidentally, IE behaves this way, Firefox does not.
Firefox saves the file with the name I specified.
As a user, when I choose to save the file, I can force IE to use the exact
filename I want by surrounding it with double quotes: "myfile.lic". Then
the .txt doesn't get tacked on. But I can't force those extra quotes on
there in the Content-Disposition line.
Anyone have a solution?
Nate
download. It sends these http headers:
Content-Type: text/plain
Content-Disposition: attachment; filename="myfile.lic"
The file being downloaded is a license file and MUST be stored with that
..lic extension.
If I access this aspx page with IE, it prompts me if I want to open or save
the file. I choose save, and it prompts me for a location and filename, and
the default filename is indeed myfile.lic. But when it actually saves it,
it renames it to myfile.lic.txt.
Very frustrating! Incidentally, IE behaves this way, Firefox does not.
Firefox saves the file with the name I specified.
As a user, when I choose to save the file, I can force IE to use the exact
filename I want by surrounding it with double quotes: "myfile.lic". Then
the .txt doesn't get tacked on. But I can't force those extra quotes on
there in the Content-Disposition line.
Anyone have a solution?
Nate