Support for SermonSpeaker 4.x is canceled as it is for Joomla 2.5. I will gladly assist you with minor issues but I will not fix any bugs anymore in this releases.
The fix is to upgrade to SermonSpeaker 5.x and Joomla 3.x, which is better anyway.

Download button won't work with S3

More
09 May 2012 16:10 #1912 by Julie Tillman
Does Sermon Speak create the download links differently for audio files hosted on the server than for audio files hosted on Amazon?

For example, if we upload an .mp3 file to Sermon Speaker through the front-end, users can download it using the download link. If we upload the same file to Amazon the browser (Firefox) plays it and does not let the user download the file (even with a right-click to save it). Using S3 means that users cannot download the file AT ALL.

If they are treated differently, do they have to be? Has anyone found a work-around to this problem? We want our users to be able to manually download whatever file they want.

Thanks for any feedback!

Please Log in or Create an account to join the conversation.

More
09 May 2012 16:37 #1915 by Thomas Hunziker
Yep, as soon as a file is stored outside the Joomla root directory, the download link will be a simple link to the audiofile. It's then up to the browser what options a user will have.

If the file is stored locally, the download link will force a download of the file. This is basically done by reading the file and dynamically offering it to the browser. The browser is then forced to download it first instead of directly playing it like it usually does with audiofiles.

I'm not sure however why Firefox doesn't let you save a file from S3. It should be possible for sure. At least it's not something SermonSpeaker prevents.

Reason for this behaviour is that php usually can only access files on the same server. In the case of SermonSpeaker I use the Joomla file functions which are restricted to files inside the Joomla directories.
There are ways around it with CURL and such things, but those bring their own problems with them, thus I avoided it so far to keep things as simple as possible.

Please Log in or Create an account to join the conversation.

More
09 May 2012 16:47 - 09 May 2012 16:47 #1918 by Julie Tillman
Probably best for me to stop using S3 and stay within the bounds of my host. Thanks!
Last edit: 09 May 2012 16:47 by Julie Tillman. Reason: typo

Please Log in or Create an account to join the conversation.

More
09 May 2012 17:05 #1919 by Thomas Hunziker
If you have enough webspace on your host, it sure is the best to have the files on the same server. AmazonS3 is a good way if you have only limited space on your webserver.

Also Flash can have issues with accessing files on different servers, which can cause the player to fail.

Please Log in or Create an account to join the conversation.

More
10 May 2012 13:55 #1920 by Andrew

Thomas Hunziker wrote: Yep, as soon as a file is stored outside the Joomla root directory, the download link will be a simple link to the audiofile. It's then up to the browser what options a user will have.


Hi Thomas,

First of all let me say thanks for all your work on this module, I really appreciate it.

I was wondering, it seems like the problem here for Firefox users is that there is not a regular link that they can right click on to then "save link as" for the sermon files hosted on S3. Is there any way we could add a link in place of or in addition to the download button (which is currently not right clickable)? I think this could potentially solve the issue.

Thanks,

Andrew

Please Log in or Create an account to join the conversation.

More
10 May 2012 14:15 #1921 by Thomas Hunziker
Can you check if it works with the icon layout?
I think the issue is with the way the download button is built. Since it's a input button with a javascript onclick event that points to the download the browser probably acts different. The icon layout has a straight link to the download function, which should allow the rightclick.

Can you test that and see if it works together with AmazonS3?

Please Log in or Create an account to join the conversation.

Time to create page: 0.182 seconds
Powered by Kunena Forum