⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
muhasebe
/
modules
/
Media
/
CustomGcs
/
View File Name :
CustomGoogleStorageAdapter.php
<?php namespace Modules\Media\CustomGcs; use League\Flysystem\Config; use Spatie\GoogleCloudStorage\GoogleCloudStorageAdapter; class CustomGoogleStorageAdapter extends GoogleCloudStorageAdapter { /** * {@inheritdoc} */ public function copy($path, $newpath) { $newpath = $this->applyPathPrefix($newpath); // we want the new file to have the same visibility as the original file $visibility = $this->getRawVisibility($path); $options = [ 'name' => $newpath, ]; $this->getObject($path)->copy($this->bucket, $options); return true; } /** * Returns an array of options from the config. * * @param Config $config * * @return array */ protected function getOptionsFromConfig(Config $config) { $options = []; if ($metadata = $config->get('metadata')) { $options['metadata'] = $metadata; } return $options; } }