Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

SecureFiles and htm files


Go to End


756 Views

Avatar
joker042

Community Member, 1 Post

27 April 2014 at 11:41pm

Edited: 27/04/2014 11:41pm

Hi Guys,

I've got a site using SecureFiles to control access to a pdf. I'm replacing the pdf with a flash ebook viewer, which requires me to serve up an htm file from within a SecureFiles secured directory. When the htm file is served to the client, it comes up as a download, instead of being served as an HTML file.

HTML files which are not in secured directories are served correctly, but those within secured directories are offered as downloads. Does anyone have a solution to this?

Thanks,

Jeremy.