Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

downloading xml files by clicking on link

1 view
Skip to first unread message

zimmma00

unread,
Oct 29, 2009, 3:21:33 PM10/29/09
to
I had a web site that goes to a directory for users to download data. The web browser that the users use is locked down to not allow the user to right click. So, I need to have the user click on the file to down load it to there system. I can get csv files and other extentions to request the user to save or open (dialog box). I can not get files with the extention of xml to request the same save or open dialog box. They just go to the next screen and present the data. I tried renaming the xml files to a different extension, but it behaves the same way. I am guessing that files with xml code in them are treated differently.

I have mainly tried the following directive.

AddType application/octet-stream .xml
AddType application/octet-stream xml
AddType application/octet-stream .XML
AddType application/octet-stream XML


Does anyon have any ideas on how to get these files to download rather than be presented as web pages?

The stanzas fall under a virual host.

Thanks,
Mark

Eric Covener

unread,
Oct 29, 2009, 3:46:09 PM10/29/09
to
zimmma00 wrote:
> I had a web site that goes to a directory for users to download data.
> The web browser that the users use is locked down to not allow the
> user to right click. So, I need to have the user click on the file
> to down load it to there system. I can get csv files and other
> extentions to request the user to save or open (dialog box). I can
> not get files with the extention of xml to request the same save or
> open dialog box. They just go to the next screen and present the
> data. I tried renaming the xml files to a different extension, but
> it behaves the same way. I am guessing that files with xml code in
> them are treated differently.
>
> I have mainly tried the following directive.
>
> AddType application/octet-stream .xml AddType
> application/octet-stream xml AddType application/octet-stream .XML
> AddType application/octet-stream XML
>

search the web for the Content-Disposition header

--
Eric Covener

0 new messages