Support Forums - Classified Ads Script Osclass
Osclass plugin support => General plugins discussion => Topic started by: MB Themes 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 ;)
-
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
-
You shoukd always have test site where you do testing.
There is no special configuration for AWS.
Add keys and upload images to bucket
-
Are all folders and files suppose to be uploaded from the Uploads folder or just some of them.
-
Only listing images.
-
Which folder would that be, 0, page-images, user-images, or one of the other folders.
-
Its not based on folders, but it is 0,1,2...
-
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.
-
Osclass does not use hosting integration so its just about configuration
-
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.
-
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...
-
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.
-
@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.
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 ;)
-
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.