Forum Moderators: open
My application has several pages whose function it is to write a Byte array or save an object to the HttpResponse. This is working great, except that when the object is of a type not handled by the browser (in this case, it's a Zip file), the default name in the Save dialog has the .aspx extension.
I'd like to have the files perform as they do now - the page that loads the Zip, for instance, opens a popup responsible for grabbing the Zip, loads it into the response, and automatically closes the popup and displays a Save dialog - but default in the Save dialog to the right extension. Anyone know a way to do it?
Thanks in advance,
g.
I actually got this mime-type from my windows' registry...afaik there is only one correct mimy-type for each content...in this case it's application/x-zip-compressed. You find a list of multipurpose internet mail extensions here:
ftp*//ftp.isi.edu/in-notes/iana/assignments/media-types/media-types