IE modifying filename specified in content type response

G

Guest

I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML file to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();
 
M

MSDN

Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA
 
G

Guest

It will exist on the user's PC... but the prompt is within the
OPEN/SAVE/CANCEL dialog... before you even pick a target for the install.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp



MSDN said:
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA


AC said:
I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML file
to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();
 
M

MSDN

good enough and if it does not exist then you still get
Product[1].License.lic even for the first time.

Does the name Product a reserved word.

What happens if you just, for testing only, use Product.lic or
Product.License what happens?

SA



AC said:
It will exist on the user's PC... but the prompt is within the
OPEN/SAVE/CANCEL dialog... before you even pick a target for the install.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp



MSDN said:
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA


AC said:
I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML
file
to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the
the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See
code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();
 
G

Guest

Same result.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp



MSDN said:
good enough and if it does not exist then you still get
Product[1].License.lic even for the first time.

Does the name Product a reserved word.

What happens if you just, for testing only, use Product.lic or
Product.License what happens?

SA



AC said:
It will exist on the user's PC... but the prompt is within the
OPEN/SAVE/CANCEL dialog... before you even pick a target for the install.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp



MSDN said:
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA


I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML
file
to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the
the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See
code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();
 
M

MSDN

I tried your code:

When I use just Product.lic I get "Product.lic" < Correct
When I use just Product.License I get "Product.License" < Correct
When I use Product.License.lic I get Product[1].License.lic

So not the same thing happens.

SA


MSDN said:
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA


AC said:
I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML file
to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();
 
G

Guest

Yes, different result. The more research I do, the more it sounds like this
is something handled by the browser... and not something we have control
over. Oh well.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp



MSDN said:
I tried your code:

When I use just Product.lic I get "Product.lic" < Correct
When I use just Product.License I get "Product.License" < Correct
When I use Product.License.lic I get Product[1].License.lic

So not the same thing happens.

SA


MSDN said:
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA


AC said:
I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML file
to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();
 
M

MSDN

Oh well, may be send a zipped file that expands to Product.License.lic

AC said:
Yes, different result. The more research I do, the more it sounds like
this
is something handled by the browser... and not something we have control
over. Oh well.

--
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp



MSDN said:
I tried your code:

When I use just Product.lic I get "Product.lic" < Correct
When I use just Product.License I get "Product.License" < Correct
When I use Product.License.lic I get Product[1].License.lic

So not the same thing happens.

SA


MSDN said:
Product.License.lic already exists ???
Is that why it is adding Product[1].License.lic
does it add Product[2].License.lic?

SA


I've got an page used for downloads that acts similarily to the MSFT
downloads.... page displays and refreshes itself which causes a XML
file
to
be streamed to the client.

The streaming of the file is working fine, however, IE is mucking the
the
filename I specify. For example, I'm specifying the filename
"Product.License.lic", but IE displays "Product[1].License.lic". See
code
below... ideas?

Response.ContentType = "text/xml";
Response.AddHeader("content-disposition",
"attachment;filename=Product.License.lic");
Response.BinaryWrite(buffer);
Response.End();
 

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

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top