HI Paul, Ok, I'm feeling a little foolish....I honestly have no idea what happened, but it's working now. The page is displayed rather than downloaded, which is what I want. Sorry fo the total waste of time here.....sigh...
Thanks, -Mark On Mon, Apr 25, 2016 at 10:28 AM, Paul Libbrecht <p...@hoplahup.net> wrote: > Mark, > > what causes it to be downloaded is a header called "Content-Disposition". > If it's there and says "attachment" then the browser will present it as > a download, whatever the media type. > If it's not there, the browser will choose what to do depending on what > it supports (png or html: can display, doc: will download ...). > > The html head element will not influence that. > > Can it be that the link you have has an extra parameter called > "forceDownload=1". At least in earlier versions, this is what added the > header. Removing it would be the trick. > > Note that offering html documents to upload and preview to "anybody" is > a rather big security issue but probably this is not an issue here. > > paul > > > Mark J. Bobak <mailto:m...@bobak.net> > > 25 April 2016 at 15:40 > > Hi all, > > > > I'm an XWiki newbie. I've written a script that generates an HTML file, > > and then I upload it as an attachment to XWiki. When I create a link on > > that file, and then click the link, I get the HTML file downloaded by the > > browser, rather than displayed. > > > > From what I've read, this may be caused either by something in my HTML or > > by an XWiki setting. > > > > In the HMTL, my headeer looks like this: > > <!DOCTYPE html><html><head><meta http-equiv="Content-Type" > > content="text/html; c > > harset=utf-8" /><h1 align=center>NITS Solutions AWS Server > > List</h1><style>table > > , th, td { border: 2px solid black; border-collapse: collapse; > > }</style></head> > > > > My undedrstanding is that the 'text/html' should tell the browser to > > display rather than download. > > > > Also, in the xwiki.properties file, in the Attachment section, I found > the > > 'attachment.download.whitelist' and 'attachment.download.blacklist', but > > both were commented out, which I assume means this feature is disabled? I > > even tried uncommenting the whitelist and making sure it contained > > 'text/html', and then bouncing, but it made no difference. > > > > Can anyone offer me a clue? I just want my simple little document to > > display rather than download. > > > > Thanks, > > > > -Mark > > _______________________________________________ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users