Protecting files for downloads in two locations?

I have a lot of content that is currently protected using ccaps. I want to have an option for an all-access pass, like a Diamond membership but i want to have a limit to the downloads for that level.

I currently am looking at a Level 2 where i set a limit of 20 downloads for 30 days (no such limitation for Level 1 users as they are otherwise protected by ccaps only).

So, i saved a particular file to the protected file section of s2 (especially for the Diamond membership, since i didn’t have the need for previous files).

As i tested , i am getting an error because the file was not on my Amazon drive (that is where i keep my videos, but not my pdf files). Am i able to use both the Amazon and the s2Member-files locations to keep my files? or do i have to pick only one?

I think i answered my own question by reading further in the s2M:
"If you configure the options below, s2Member will assume all protected files are inside your Amazon S3 Bucket; and the /s2member-files/ directory is no longer used at all. "

Hum… now, let’s see how this can be made more manageable when i have hundreds of video files (most of the streaming, and only a few being downloadable) and want to place sub-folders.

Is there a way to use a code so that i can direct s2M to see some files on AmazonS3 and some being local? I seem to remember seeing a shortcode, but i can’t use a shortcode as a link to an image, or at least, i can’t figure it out.

Can anyone help?

@Cassel

Carole,

Please see this s2Member KBA: http://s2member.com/kb-article/can-i-use-more-than-one-storage-gateway-for-file-downloads/. It includes details of how to implement this for links.

I hope this helps.

1 Like

Unfortunately, it does not help.

First, this article states that it is possible to use two distinct locations for files, yet, even if i am setting up ONLY Amazon, i am getting either an error about the key (and i generated one just for this), or a user who should have the access to the file, is being redirected to the home page (not even the option page).

Second, i get the syntax for a SHORTCODE, but i can’t use a shortcode to link to an image. Or maybe i don’t understand how to link an image to the download file using a shortcode. The examples are not clear to me.

Now, what i am unsure, and it is not clear in the video, is whether the user HAS to be called s2Member, and if so, how does it know and connect with s3?

Since i was not sure, i also created a user called s2Member, and gave it the SuperUser policy also (and the set up for that looks different from the video, which might be just a newer interface of AWS).

But then, how does the system know that there is now a user called s2Member? Do i set it up somewhere?

So, where i am unsure is this:

  • do i have to create a bucket especially for s2M or can i use an existing bucket?
  • if i need to create one for s2M, how do i do that so it knows?
  • about the user, what user can/should be used? An existing one, or a new one?
  • how does the user connect to the bucket and then to s2m?

I am stuck at this point. Without a working bucket/user setup on AWS, i can’t move further.

Thanks for the help