latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

protect files for viewing not downloading

Home Forums Community Forum protect files for viewing not downloading

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 3 years, 7 months ago.

Topic Author Topic
Posted: Friday May 24th, 2013 at 5:54 am #50545

HI,
I have uploded a directory into the s2member-files directory in order for it to be protected.
What I would like to happen is only registered users will be able to view (not download) the files.
Using the path to the actual directory and files returns a not found page, although all the files are there
http://www.cellocator.com/knowledgebase/cello-iq-flow/player.html

If I use the other type of path it prompts the user to download the file – which I don’t want
http://www.cellocator.com/?s2member_file_download=cello-iq-flow/player.html

How can this be done? The files are a presentation I would like the registered users to see.

Thanks,
Dan

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Friday May 24th, 2013 at 9:23 pm #50591

Using the path to the actual directory and files returns a not found page, although all the files are there
http://www.cellocator.com/knowledgebase/cello-iq-flow/player.html

The address would actually be:
http://www.cellocator.com/wp-content/plugins/s2member-files/cello-iq-flow/player.html

See: [hilite path]Dashboard -› s2Member® -› Download Options -› Advanced Mod-Rewrite Linkage[/hilite]

If I use the other type of path it prompts the user to download the file – which I don’t want
http://www.cellocator.com/?s2member_file_download=cello-iq-flow/player.html

Have you added [hilite mono]html[/hilite] to this setting? [hilite path]Dashboard -› s2Member® -› Download Options -› Inline File Extensions[/hilite]

[note_box]
There are two ways to serve files. Inline, or as an Attachment. By default, s2Member will serve all of your protected files, as downloadable attachments. Meaning, visitors will be given a file download prompt. Otherwise known as [hilite mono]Content-Disposition: attachment[/hilite]. In some cases though, you may wish to serve files inline. For example, PDF files and images should usually be served inline. When you serve a file inline, it is displayed in your browser immediately, rather than your browser prompting you to download the file as an attachment.
[/note_box]
Posted: Saturday May 25th, 2013 at 6:52 am #50623

Thanks Christian
I added the .html and the .htm extensions to the “inline File Extensions” settings vut I am still getting the download prompt.
when trying to view the file via the URL, I get a blank screen:
http://www.cellocator.com/?s2member_file_download=cello-iq-flow/player.html&s2member_file_inline=yes.

The file I want the users to see is an HTML file playing a presentation.
Here is a print screen of all the files in the directory:
https://dl.dropboxusercontent.com/u/1746027/cello-ps.jpg

I just got it working by changing the URL to this:
http://www.cellocator.com/wp-content/plugins/s2member-files/s2member-file-inline/cello-iq-flow/player.html

Adding the /s2member-file-inline/ after the /s2member-files/ solved the problem.

Thanks for your help,

Dan

Posted: Saturday May 25th, 2013 at 8:59 pm #50643

That’s great! Thanks for the update. :)

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.