We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have faced file rename issue when encryption is set as 'null' like following:
//servocoder/richfilemanager-php/src/Repository/S3/StorageHelper.php public $encryption = null; //servocoder/richfilemanager-php/src/Repository/S3/Storage.php public function copyItem($source, $target, $remove = false) { $context = stream_context_create([ 's3' => array_merge($source->getAclParams(), [ 'ServerSideEncryption' => $this->s3->encryption, ]), ]); $copied = copy($source->getAbsolutePath(), $target->getAbsolutePath(), $context); if ($copied && $remove === true) { $this->s3->delete($source->getDynamicPath()); } return $copied; }
So, when $this->s3->encryption is 'null' it does not copy the file and it eventually deletes the source file as per following:
if ($copied && $remove === true) { $this->s3->delete($source->getDynamicPath()); }
But if i remove 'ServerSideEncryption' parameter or if i set public $encryption = 'AES256'; it works. like following:
$context = stream_context_create([ 's3' => array_merge($source->getAclParams(), [ // 'ServerSideEncryption' => $this->s3->encryption, ]), ]); Or public $encryption = 'AES256'; $context = stream_context_create([ 's3' => array_merge($source->getAclParams(), [ 'ServerSideEncryption' => $this->s3->encryption, ]), ]);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have faced file rename issue when encryption is set as 'null' like following:
So, when $this->s3->encryption is 'null' it does not copy the file and it eventually deletes the source file as per following:
But if i remove 'ServerSideEncryption' parameter or if i set public $encryption = 'AES256'; it works. like following:
The text was updated successfully, but these errors were encountered: