*

MB Themes

S3 Cloud Image Storage Plugin
« on: March 24, 2023, 02:09:08 PM »
Hey folks,
New plugin is there:
https://osclasspoint.com/osclass-plugins/extra-fields-and-other/s3-cloud-image-storage-plugin-i203

Don't be afraid of S3 cost, Scaleway has 75GB free limit if configured correctly ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

KaloSex

  • ****
  • 139 posts
Re: S3 Cloud Image Storage Plugin
« Reply #1 on: May 16, 2023, 07:41:39 PM »
i just purchased the plugin. Any help file how to setup the amazon side?

I tried to take it slowly, but to be able to use the check connection etc on plugin, it has to be enabled. Once anabled, all images stop working on site.

So since its a live site, ihave to do everything fast. So if there is any step by step guide, i will appreciate it a lot

*

MB Themes

Re: S3 Cloud Image Storage Plugin
« Reply #2 on: May 17, 2023, 08:30:10 AM »
You shoukd always have test site where you do testing.
There is no special configuration for AWS.
Add keys and upload images to bucket
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sparky

  • ***
  • 89 posts
Re: S3 Cloud Image Storage Plugin
« Reply #3 on: May 27, 2023, 12:43:23 PM »
Are all folders and files suppose to be uploaded from the Uploads folder or just some of them.

*

MB Themes

Re: S3 Cloud Image Storage Plugin
« Reply #4 on: May 27, 2023, 03:09:55 PM »
Only listing images.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sparky

  • ***
  • 89 posts
Re: S3 Cloud Image Storage Plugin
« Reply #5 on: May 27, 2023, 05:29:49 PM »
Which folder would that be, 0, page-images, user-images, or one of the other folders.

*

MB Themes

Re: S3 Cloud Image Storage Plugin
« Reply #6 on: May 27, 2023, 08:41:14 PM »
Its not based on folders, but it is 0,1,2...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sparky

  • ***
  • 89 posts
Re: S3 Cloud Image Storage Plugin
« Reply #7 on: May 30, 2023, 11:46:42 AM »
I've got a problem, pictures are not showing in my website when the plugin is turned on and my plugin states,  S3 connection and configuration looks good! in both areas where you check it.

My hosting: Yes, we do support it AWS PHP SDK library but yes you will need to download it and install it via command line using SSH and it should work in our servers without any issue.

What are they wanting me to download and install via command line.


*

MB Themes

Re: S3 Cloud Image Storage Plugin
« Reply #8 on: May 30, 2023, 03:12:19 PM »
Osclass does not use hosting integration so its just about configuration
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sparky

  • ***
  • 89 posts
Re: S3 Cloud Image Storage Plugin
« Reply #9 on: June 01, 2023, 02:39:38 PM »
I can not make the plugin work no matter what I do with configuration or settings. I've never had this much trouble using s3 storage before and I need this to work . I guess I am going to need some help, so what should I do. 

*

MB Themes

Re: S3 Cloud Image Storage Plugin
« Reply #10 on: June 01, 2023, 03:13:02 PM »
Fist step is correctly configure API keys, URLs, regions, buckets etc and do initial test.
If does not work, enable error logging and check reports from S3 service and try to first check with provider what it means.
Sometimes it's just wrong endpoint, url, setup of bucket, permissions...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sparky

  • ***
  • 89 posts
Re: S3 Cloud Image Storage Plugin
« Reply #11 on: June 02, 2023, 03:13:55 PM »
Are we suppose to just make a Bucket and the system will do the rest, or are we suppose to add the (0 folder) in the bucket. The 0 folder is the only folder I see in the uploads folder also, there are no 1,2,3 folders in it.

---------
Endpoint URL:
Link to provider endpoint. You can use keywords: {BUCKET}, {API_KEY}, {REGION}. Example endpoint link for AWS: https://{BUCKET}.s3.amazonaws.com
## Error found## the link should read AWS:https://{BUCKET}s3.amazonaws.com , that little extra dot caused a lot of issues until I found out it was the problem.


edited: Ok now I got it working but all the images are uploaded directly into the bucket folder and not into my uploads/0 folder. Maybe I need to change my Public URL bucket link and add the uploads/0 to it, and then move my pictures back into the right folder 0/ , or have you got any suggestions.

I think I got it figured out, and you can tell me if it's right or wrong.
You only need to make a bucket , and then when the configuration is right, all the pictures that are posted go directly into that bucket as OBJECTS from the site. When a post is deleted , they are also deleted from that bucket.
« Last Edit: June 04, 2023, 01:53:21 PM by Sparky »

*

MB Themes

Re: S3 Cloud Image Storage Plugin
« Reply #12 on: June 05, 2023, 10:26:19 AM »
@Sparky
internal osclass structure of images folders is not copied to bucket.
i.e. if your bucket url is mybucket.s3.com, and your images are in folder oc-content/uploads/{0-999}, then url in bucket for random image will be mybucket.s3.com/myimage.jpg

As far as I know, for AWS, bucket url is: http://[bucket_name].s3.amazonaws.com/.
Anyway it's just template, you can put there anything you want.

Quote
You only need to make a bucket , and then when the configuration is right, all the pictures that are posted go directly into that bucket as OBJECTS from the site. When a post is deleted , they are also deleted from that bucket.
Yes that's correct ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sparky

  • ***
  • 89 posts
Re: S3 Cloud Image Storage Plugin
« Reply #13 on: June 05, 2023, 02:43:43 PM »
After I realized what was wrong, I done away with the (uploads/ and 0/) folders in AWS and just had my bucket name , and testing it with this (https://{BUCKET}.s3.amazonaws.com) link and it not working, that's when I took out the extra (.) after bucket name and just used this (https://{BUCKET}s3.amazonaws.com) link and it worked great. I got my bucket list to appear and my images in the configure page showing everything. I hope this might help others if they have a problem. It's really and easy method once you understand how it works. I was just use to doing it in other methods and it was causing me to not see the simple process. I done this on a shared hosting plan as well and have 4cpu and only 4gb ram and it's pretty fast for me just starting out with my site.

Thanks for the help, the plugin works great and deserves 5 stars.