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.

Embedded File Download Popup

Home Forums Community Forum Embedded File Download Popup

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

Topic Author Topic
Posted: Tuesday Jun 4th, 2013 at 10:40 am #51329

Hi,

We have uploaded the output from our e-learning authoring application to the s2member-files directory.

The content is basically an html5.html file which links to SWFs and MP4 videos located under subdirectories.

I am calling the html5.html file through a script to open in a popup window from a page upon clicking a text. However, instead of opening the page in the new page, it asks to download it to local and upon downloading html5 becomes a local file and the content is not played in the newly opened window.

I also tried embedding the html5.html in an iframe in the main page and still it asks for download instead of embedding.

Please suggest how to deal with this issue. Also I am not sure if the html5.html will be able to access the video files located in the subdirectories even it is embedded well.

Is there any way to protect the wp-content/uploads directory as we use an attachment plugin for bbpress which uploads the files directly to the media library. We just need to protect the files from public users and enable only logged in users to access them.

Looking forward to your assistance.

Regards,

Jinobi

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Thursday Jun 6th, 2013 at 12:19 am #51449

instead of opening the page in the new page, it asks to download it to local

Have you added [hilite mono]html[/hilite] to the list of extensions here? [hilite path]Dashboard -› s2Member® -› Download Options -› Inline File Extensions[/hilite]

Also I am not sure if the html5.html will be able to access the video files located in the subdirectories even it is embedded well.

They’ll be protected too if they’re under the s2member-files directory. I’m not sure if the HTML file will be able to embed them though, test it. If not, you’ll need to add a download key to those. [hilite path]Dashboard -› s2Member® -› Download Options -› Advanced Download Restrictions[/hilite]

Is there any way to protect the wp-content/uploads directory as we use an attachment plugin for bbpress which uploads the files directly to the media library. We just need to protect the files from public users and enable only logged in users to access them.

I haven’t done this before. You could try changing the s2Member protected directory for files to be that one, but you’ll need to test how it works for your use. See: http://www.primothemes.com/forums/viewtopic.php?f=36&t=2729&p=8018#p8018

Posted: Thursday Jun 6th, 2013 at 1:32 am #51452

Hi Cristian,

Thank you for your assistance. Yes, the inline extension was the issue with download, and is resolved now.

However, the second issue of giving access to each file under subdirectory called by the html, through key as suggested would be difficult as there are 100s of files which are further called from various XML, SWF etc. Hence providing a key to each file is not practical. Is there any way, we can give access to a directory as a whole?

Do you think keeping the html and the files in subdirectories in Amazon S3 CDN could resolve the issue? Or, the files in subdirectories in Amazon also will not be accessible?

Your assistance is highly appreciated.

Regards,

Jinobi

Posted: Friday Jun 7th, 2013 at 5:58 am #51586

es, the inline extension was the issue with download, and is resolved now.

Great.

Do you think keeping the html and the files in subdirectories in Amazon S3 CDN could resolve the issue? Or, the files in subdirectories in Amazon also will not be accessible?

No, the bucket you integrate with s2Member will be like the s2member-files directory: it’s all protected, including subdirectories.

Try the HTML file, do the embedded files load fine or is the protection interfering? If it is, you will need to either give them a download key or move them out of the s2Member protection…

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.