Hi,
I'm following this topic
www.jomsocial.com/forum/photos-videos/12...mages-from-amazon-s3
and waiting for an answer from 1 month 2 weeks ago.
I've got the same problem and I didn't want to open another topic but I need to know how is the subject going because I have to launch my website soon and I need the S3 remote storage functionality.
Could you tell me when it will be fixed?
Thanks
Jesus
Hi, perico.
"S3 remote storage is not working" tells us nothing. Also linking to another topic.
ALWAYS describe your issue with details, how to replicate it, where it is located, print screens are great help.
So tell us more about your issue and what you want achieve.
Hi Michal,
yes I know that I have not describe my issue with details but it is really the same as the other topic that I've linked.
Sorry about that if it is a problem.
The only thing I want to know is about how long the problem may be solved. Could you ask to the developer how it's going?
I need to know it to plan the launch of the web. It is the last feature that I need to include.
Thanks
Hi, perico.
In this month we'll release JomSocial 3.2, so this issue should be solved in this release.
Hi,
in the changelog of JS versión 3.1.1 appears that you have fixed the bug MISC->Covers are not moved to Amazon S3.
I've have tried and covers are moved to S3 (as well as photos and avatars).
The problem is that once moved to S3 (covers, photos, avatars) don't appear in the website.
The url from which is trying to load the images from Amazon S3 is:
s3.amazonaws.com/BUCKET_NAME/images/avat...17c7e2fa8dfe00b2.jpg
If you write directly this url in a navigator, you get a error message:
<Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message>
It should be:
http://BUCKET_NAME.s3.amazonaws.com/images/avatar/thumb_a8a01cd317c7e2fa8dfe00b2.jpg
Please fix it.
Thanks
Hi,
I've change the line 113 in the file \components\com_community\libraries\storage\s3.php
from:
return '
s3.amazonaws.com/
' . $this->bucket . '/' . $item->resource_path;
to:
return 'http://'.$this->bucket.'.s3.amazonaws.com/'. $item->resource_path;
to fix the previous problem.
After that, I've been testing a litle bit more and I have found the next:
A)) For photos and covers is working fine from amazon S3. OK!!!
B)) The avatars files are not being transfer to S3.
If I upload a new avatar 4 files are created in the server folder /images/avatar/. For example:
1º 679168bdc941fc4e0704a4a1.jpg 10Kb
2º 679168bdc941fc4e0704a4a1_stream_.jpg 13Kb
3º profile-679168bdc941fc4e0704a4a1.jpg 14Kb
4º thumb_679168bdc941fc4e0704a4a1.jpg 4Kb
No one of these avatar files are transfer to S3 and then Jomsocial take them from the server.
Please, could you ckeck and solve it?
Thanks
Hi, perico.
I confirm, your fix is ok.
As for avatars... I'll add developer to this thread, he'll take a look at it.
Hi, perico.
Try change in ROOT/components/com_community/libraries/storage/s3_lib.php lines 1142 & 1143:
from:
// $hostBucket ? $bucket : $bucket.'.s3.amazonaws.com', $uri, self::$__accessKey, $expires,
$hostBucket ? $bucket : self::$endpoint.'/'.$bucket, $uri, self::$__accessKey, $expires,
$hostBucket ? $bucket : $bucket.'.s3.amazonaws.com', $uri, self::$__accessKey, $expires,
// $hostBucket ? $bucket : self::$endpoint.'/'.$bucket, $uri, self::$__accessKey, $expires,