ckfinder / ckfinder-laravel-package

CKFinder 3 package for Laravel
Other
153 stars 86 forks source link

How to use it on AWS S3? #85

Open saimunhossain opened 2 years ago

saimunhossain commented 2 years ago

ckfinder.php // Here aws credentials

$config['backends']['default'] = array( 'name' => 'default', // 'adapter' => 'local', // 'baseUrl' => config('app.url').'/userfiles/', // 'root' => public_path('/userfiles/'), 'adapter' => 's3', 'bucket' => config('AWS_BUCKET'), 'region' => config('AWS_DEFAULT_REGION'), 'key' => config('AWS_ACCESS_KEY_ID'), 'secret' => config('AWS_SECRET_ACCESS_KEY'), 'visibility' => 'public', 'baseUrl' => config('BUCKET_URL').'/'.config('AWS_BUCKET').'/', /my aws bucket url/ 'root' => config('BUCKET_URL').'/'.config('AWS_BUCKET').'/', /my aws bucket url/ 'chmodFiles' => 0777, 'chmodFolders' => 0755, 'filesystemEncoding' => 'UTF-8' );

bmlotek commented 1 year ago

Hello,

In documentation you can find example how configuration for aws s3 should look like.

For start you should delete those lines: 'chmodFiles' => 0777, 'chmodFolders' => 0755, 'filesystemEncoding' => 'UTF-8'

If you still have the problem, give me info?