Home › Forums › Community Forum › Download links
This topic contains 29 replies, has 5 voices. Last updated by Jason (Lead Developer) 4 years, 2 months ago.
Topic Author | Topic |
---|---|
Posted: Sunday Sep 30th, 2012 at 12:35 am #26998 | |
|
|
We are selling access to posts with videos streaming video via Amazon S3/Cloudfront. We are using the PHP code provided under the JW Player® ( RTMP streaming MP4, via s2Member’s Amazon® S3/CloudFront integration ) example. The video streams fine, but we want to have a downloadable link as well to that video so they can download it to their computer. I was adding a simple anchor tag with with download link at the very bottom of the PHP, like:
or
Every once in a while one of these will work, but most of the time it does not. How should we provide a download link to the videos? Thanks |
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Monday Oct 1st, 2012 at 5:29 am #27041 | |
![]() |
|
Hi Jeremy, That second link should work. When you say “most of the time it does not” work, what exactly does that look like? What happens? Do you get an error? |
|
Posted: Monday Oct 1st, 2012 at 9:24 am #27071 | |
|
|
I get the pop up box that says “–Confirm File Download– you have downloaded x out of unlimited..”, so at this point you think it’s going to work, but instead you are redirected to a server not found page. The URL it is trying to go to is something like
We are getting some pretty hostile customers so I appreciate any help. |
|
Posted: Monday Oct 1st, 2012 at 11:34 am #27086 | |
|
|
Hello Jeremy, Can you please go into your amazon console and check that the download distribution still exists it sounds like it may have been deleted? Also on a side note I noticed that you’re allowing the option to take card details on your site but don’t appear to have an SSL certificate installed, so in that case its payment will not work and your want to look into that. Let us know about the distribution. Thanks |
|
Posted: Monday Oct 1st, 2012 at 1:12 pm #27092 | |
|
|
You were right, the cloudfront was disabled for some unknown reason, I enabled it and waited about 30 minutes, but now when I click on the download link it gives me an access denied xml page:
Access Denied IzSYST0OTiM6xaERRzjrbDipUoWCkGYrtRbaM7gRgCjvWhURbRdtz+4D7bhGp9Vy Any idea on why it would be doing this? Also she does have SSL on the site, but probably not enabled on those posts, I can go back and enable that. Thanks for your help. |
|
Posted: Monday Oct 1st, 2012 at 1:15 pm #27094 | |
|
|
Sorry on that last post, I just realized that the xml had “code” tags in it. It should’ve looked like:
|
|
Posted: Monday Oct 1st, 2012 at 1:22 pm #27097 | |
|
|
Can you check the contents of the crossdomain.xml file located in the top level of the s3 bucket your using, see if its corrupted |
|
Posted: Monday Oct 1st, 2012 at 3:12 pm #27118 | |
|
|
OK the crossdomain.xml file says it has errors in it when I open it. Another strange thing is there seems to be something writing files to the bucket, they look like 2012-10-01-19-03-44-5592hgsbe… which i am assuming every time a video is accessed it is creating one of these files since they look like date and times. Could the error in the xml file be causing this? If I simply delete the crossdomain.xml will a new one be created error free? I am new to this service, but looks great when it works. |
|
Posted: Monday Oct 1st, 2012 at 5:44 pm #27133 | |
|
|
What goes in the xml file? I found this in another post, would this apply to any crossdomain.xml file?
|
|
Posted: Monday Oct 1st, 2012 at 5:51 pm #27134 | |
|
|
Yes put that in the xml file and make sure the file is ‘public’. As for the ‘2012-10-01-19-03-44-5592hgsbe’ that sounds like your have logging enabled on the bucket, so amazon is writing log files every time someone tries to access files. You can turn that off by going to your bucket properties. Let us know how you get on after fixing your crossdomain file. |
|
Posted: Monday Oct 1st, 2012 at 6:01 pm #27135 | |
|
|
Ok I deleted it, and added the one I posted above, made it public, but when I try to download from a download link I get
The streaming works fine, as it always has, it’s just the download links. And you were right, logging was turned on, I disabled that.
|
|
Posted: Monday Oct 1st, 2012 at 6:11 pm #27139 | |
|
|
Can you try this please:
Also are the files in the top level of your bucket or a sub-folder? |
|
Posted: Monday Oct 1st, 2012 at 6:18 pm #27140 | |
|
|
Getting the same thing, it really looks like a permission issue:
I read somewhere that the crossdomain.xml file needs some type of restrictions, have you ever heard of this? |
|
Posted: Monday Oct 1st, 2012 at 6:30 pm #27144 | |
|
|
Not necessarily as amazon gives the same message if you’re trying to access something that doesn’t exist at that location. Can you double check your using the correct file name and correct path. remember that you cannot download from the cloudfront url that was setup for the streaming.
|
|
Posted: Monday Oct 1st, 2012 at 6:36 pm #27147 | |
|
|
I even tried a different post that time, my exact string I put in was:
Where Leilani_Kai_vs_Taeler_Hendrix.mp4 is the name of the file in the S3 bucket. Got the same error. |
|
Posted: Tuesday Oct 2nd, 2012 at 3:39 pm #27245 | |
|
|
Anything? |
|
Posted: Tuesday Oct 2nd, 2012 at 4:19 pm #27256 | |
|
|
Its strange that the streaming is working but not the download. Can you post the code your using to make this file stream without problem ‘Leilani_Kai_vs_Taeler_Hendrix.mp4 ‘ can you also locate that file in your bucket, click on it, view properties and copy and paste the link here that amazon provides. Thanks |
|
Posted: Tuesday Oct 2nd, 2012 at 5:07 pm #27264 | |
|
|
We probably have 10 different videos just like this that is streaming fine, but the download links do not work
|
|
Posted: Tuesday Oct 2nd, 2012 at 5:28 pm #27267 | |
|
|
Sorry Jeremy but I’m not sure what it could be. Lets see what Cristián or Raam thinks? While your waiting can you check that the url your being directed to when you get the access denied message matches the url given for your ‘download’ distribution that s2member created in cloudfront. Can’t see why it wouldn’t but you never know. |
|
Posted: Tuesday Oct 2nd, 2012 at 6:13 pm #27274 | |
|
|
If I right click, save as, the file it tries to save is Leilani_Kai_vs_Taeler_Hendrix.xml. If I right click and copy link address I get http://cherrybombwrestling.com/?s2member_file_download=/Leilani_Kai_vs_Taeler_Hendrix.mp4 copied to my clipboard. I’m don’t even see how that is possible. |
|
Posted: Tuesday Oct 2nd, 2012 at 6:15 pm #27275 | |
|
|
If I right click and open in a new tab, which of course would be the same as just clicking on it, the browser tries to load http://cherrybombwrestling.com/?s2member_file_download=/Leilani_Kai_vs_Taeler_Hendrix.mp4, but is redirected to And then I get the
|
|
Posted: Tuesday Oct 2nd, 2012 at 8:05 pm #27280 | |
|
|
I’ve got another off topic question, the site owner is wanting to do away with credit card transactions and just use paypal because we can’t get her SSL to work on the posts selling the videos. She has an SSL cert installed, and we installed the WordPress HTTPS plugin, but when we check “secure post” it doesn’t secure it, therefore none of the credit card transactions are working properly like you mentioned above. |
|
Posted: Wednesday Oct 3rd, 2012 at 4:45 am #27306 | |
|
|
I don’t think the certificate is installed correctly, as navigating to https:// manually redirects to http:// |
|
Posted: Wednesday Oct 3rd, 2012 at 8:49 am #27332 | |
|
|
I know right, I called Godaddy about it and they said I needed to do redirects, he didn’t understand the redirects were going to redirect if I did, I just don’t have much more time to spend on this project. Please let me know if you find out something about the download links. |
|
Posted: Thursday Oct 4th, 2012 at 2:32 am #27393 | |
|
|
I’m not a PHP pro by all means, is there a simple way to force a download w/a PHP string? Maybe that will help |
|
Posted: Thursday Oct 4th, 2012 at 7:21 am #27415 | |
|
|
I don’t know why that is. I just emailed Jason asking him what the reason could be.
Well, you can try using a download key in the URL, but I don’t know if that’d make a difference, since the problem seems to be with the CloudFront service. [hilite path]Dashboard -› s2Member® -› Download Options -› Advanced Download Restrictions[/hilite] |
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.