Not get filename[1].rtf (ie no [1])

G

Guest

Hi;

When I set:
context.Response.AddHeader("Content-Disposition", "attachment;filename=" +
item.Filename);

where Filename is dave.rtf, it will open Word with a filename of
dave[1].rtf. How do I get rid of the [1]?

--
thanks - dave
david_at_windward_dot_nethttp://www.windwardreports.com

Cubicle Wars -http://www.windwardreports.com/film.htm

I'm not sure but I think this happen when this file is already saved
in the cache (when you open this file again)
 
W

Walter Wang [MSFT]

Hi Dave,

When you choose "open" instead of "save", IE will save the file in
"Temporary Internet Files" and use associated program to open it. To avoid
duplicate file name in the same temp directory, the surfix is always
appended (starting from index 1). If you choose "save", the file name
suggested in "Content-Disposition" header is used as default file name.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top