By Sean Carney on Thursday, 26 July 2018
Posted in Technical Issues
Replies 9
Likes 0
Views 0.9K
Votes 0
I want to change the setting in EasySocial -> Storage -> Storage Paths -> Audio

I want to select Amazon S3 instead of Local Server for the Audio files storage.

I am assuming this will allow Amazon to store and serve the audio files?

You have a link for how to allow Cross-Origen Resources Sharing in Amazon which is located here: https://docs.aws.amazon.com/AmazonS3/latest/user-guide/add-cors-configuration.html

I have followed the instructions but still have some questions.

1) Should I be setting these permissions on the root level of this bucket?

In my case I have a bucket called drcarney where we are storing the files for drcarney.com
Is the top level folder which I have named drcarney the one where I should set these permissions or should I be setting them ina a child folder?
Here is the folders as they appear now: drcarney->media->com_easysocial->avatars, cache, files, photos, videos

I am assuming I should be doing this at the top level and so setting the permission on the drcarney folder?

2) There is sample CORS configuration and I am wondering if I am just supposed to save that configuration and if it will work or are there some special entries I need to make in this file. The same entry is as follows:


<!-- Sample policy -->
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>Authorization</AllowedHeader>
</CORSRule>
</CORSConfiguration>


Thanks for any help you can give me here.

Sean
Yes, everything is setup correctly, you can check your Amazon S3 bucket, it should stored those media file.
·
Wednesday, 08 August 2018 10:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sean,

Kindly find my response for your inquiries below:
1) Should I be setting these permissions on the root level of this bucket?
I am assuming I should be doing this at the top level and so setting the permission on the drcarney folder?

Yes, the permission should be set root level of the bucket

2) There is sample CORS configuration and I am wondering if I am just supposed to save that configuration and if it will work or are there some special entries I need to make in this file.

That should be correct already
·
Thursday, 26 July 2018 12:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much. So, I am assuming that in order to test this I would upload an audio file and then click on it to see if it plays?

Actually, I went to my groups and my profile with the idea that I was going to upload an audio file and that the file would be uploaded to the S3 bucket. But, I did not see any option to upload an audio file. Only the options to provide a link to an existing audio file. Am I missing something here. I am searching your documentation to see if I have the ability for us to upload audio files. And for that matter video files, and have them stored in the Amazon S3 bucket instead of on our local server.

Thanks,

Sean
·
Friday, 27 July 2018 01:31
·
0 Likes
·
0 Votes
·
0 Comments
·
In order to allow user to upload audio file on your site, you have to enabled this setting 'Enable Audio Uploads' and setup FFMpeg into your server, so your server can able to encode this audio when the user upload their audio file on your site.

The reason why need this encode process is because need to encode this audio to the standard format in order to play this audio on different browser.

Based on what i checked on your site, it seems like you haven't setup FFMpeg on your server yet, can you request with your webhosting provider to help you setup this?

Minimum requirement :
- Install FFMpeg 2.8.x version
- Enable this passthru PHP function
·
Friday, 27 July 2018 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much Arlex

Sorry for the slow reply. I was on vacation. I will ask my hosting company about installing this. Hopefully it is included in my package.

I do wonder about how it will work if the files are being served by Amazon AWS. Is this something I should be configuring there or is this only something that I configure on my host and they your software will take care of uploading to the AWS after the files are encoded?

Thanks, Sean
·
Tuesday, 07 August 2018 05:26
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome Sean.

No problem. How was your vacation?

Actually you do not need to do anything, what you need to do is setup your Amazon S3 account and put those key into your site backend Easysocial configuration page http://take.ms/dQvjI .

So Easysocial will push those media file to your Amazon S3 bucket when your server execute the cronjob.

Once these media file pushed to your Amazon S3 bucket, those media file link will convert to use Amazon domain.
·
Tuesday, 07 August 2018 10:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex,

I just now set up the remote storage right Storage Paths option to Delete Files After Upload. I have all of the options in the Storage Locations set now to use the Amazon bucket.

I also received a reply from my host that informed me that the ffmpeg was available and they have enabled this passthru PHP function.

However, I am thinking now that maybe this is not necessary. I will attach the two pictures of my settings for you to review quickly to let me know if I have done this correctly. I am actually assuming that audio settings may not be needed since the remote uploads is set hopefully correctly. The two views I am attaching are the remote storage settings and the audio settings.

Sean
·
Wednesday, 08 August 2018 00:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post