OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Installation/Technical Issues or Problems Attachments KnpGaufretteBundle and AmazonS3

This topic contains 5 replies, has 4 voices, and was last updated by  Rodolfo 7 years, 8 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #35294

    Yevhen Shyshkin
    Participant

    Hello, Rodolfo.

    Look’s like we have an issue in AttachmentBundle – it uses only locale file system to generate appropriate URL. Thank you very much for reporting, we definitely need to fix this issue!

    As for workaround – you can override AttachmentManager service and fix this issue there according to your local environment.

    #35295

    Yurii Muratov
    Participant

    Hi, @rbandeira.
    This link goes to the resized image cache. Yes. It’s goes to your server, not to the Amazon.
    If such resized file does not exists, server will receive original image from the Amazon, resize it and put to the server’s cache to minimize requests to the storage.

    #35296

    Rodolfo
    Participant

    Thank you for the answers.

    I did some research and managed to solve the problem so here it is the solution just in case someone else face the same issue.

    1) First I found this on Nginx error logs:

    When we go to KnpGaufretteBundle documentation it says to use Amazon SDK version 1.6.2. (“amazonwebservices/aws-sdk-for-php”: “1.6.2”), and I noticed that AWS SDK version 1.6.3 doesn’t have THIS LINE that was generating errors as we saw on nginx error logs.

    So, I changed the composer.json to use aws-sdk 1.6.3.

    2) After that I just had to set write permissions on web/media folder. Found this checking app/logs/prod.log.

    Hope this can help someone else and again, thank you very much.

    #35297

    jordiadame
    Participant

    @rodolfo is there any way you can share your config? I’m stuck trying to setup S3
    thanks!

    #35298

    Rodolfo
    Participant

    @jordiadame sure, jump in on OroCommunity Slack Channel and I can help you out. Request your invitation on slack [at] oroinc.com

Viewing 5 replies - 1 through 5 (of 5 total)

The forum ‘OroPlatform – Installation/Technical Issues or Problems’ is closed to new topics and replies.

Back to top