-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
I'm using aws s3 plugin for elfinder and there is a little issue on upload
If I upload a file to root directory then file url is changed weird.
(file.url from getFileCallback, handlers.select: just after upload):
http://localhost/elfinder/connector?cmd=file&target=fls1_7Iqk7YGs66aw7IO3IDIwMjAtMTAtMTMg7Jik7ZuEIDQzNC41MjExLjEyLTEucG5n
After refresh or reconnect to finder, the file.url changes to normal.
For example (what i want):
https://davmobxdwmerj.cloudfront.net/storage/myfilename.png
In case of uploading to subfolder (not root), there are no problems. It shows correct cloudfront path.
Followings are my settings
studio-42/elfinder 2.1.57
barryvdh/elfinder-flysystem-driver v0.2.1
league/flysystem-aws-s3-v3 1.0.29
$opts = array(
'maxTargets' => 1,
'roots' => array(
array(
'driver' => 'Flysystem', // driver for accessing file system (REQUIRED)
'path' => '/', // path to files (REQUIRED)
'URL' => 'https://'.$bucket['domain'] . '/' . $base . '/', // URL to files (REQUIRED)
'filesystem' => new FileSystem(new AwsS3Adapter($client, $bucket['name'], $base, $opt)),
'cache' => 'session',
'acceptedName' => 'fileNameValidate',
),
),
);