symfony - SonataMedia upload doesn't work on Amazon S3 -
i installed sonatamediabundle , works fine when want upload files locally.
but upload files on amazon s3. :
- i updated config file
- i added bundle "amazonwebservices / aws-sdk-for-php" in composer file.
but doesn't work , don't understand why ... there other action ?
thank's lot answers, need ... (i searched morning before coming ask question)
my config.yml file :
sonata_media: default_context: default db_driver: doctrine_orm contexts: default: providers: - sonata.media.provider.image formats: small: { width: 100 , quality: 70} big: { width: 500 , quality: 70} video: providers: - sonata.media.provider.image - sonata.media.provider.file formats: small: { width: 150 , quality: 95} big: { height: 500 , quality: 90} cdn: server: path: http://mybucket.s3.amazonaws.com filesystem: s3: bucket: mybucket accesskey: myaccesskey secretkey: mysecretkey create: true
Comments
Post a Comment