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
It creates files, but created dir 'filename_dir' has only 700 permissions
` $this->addBehavior('Josegonzalez/Upload.Upload', [ 'image' => [ 'keepFilesOnDelete' => false, 'transformer' => function ($table, $entity, $data, $field, $settings, $filename) { $this->patchEntity($entity, [ 'filename' => $filename, ]); return [ $data->getStream()->getMetadata('uri') => $filename, ]; }, 'path' => 'webroot{DS}images{DS}{field-value:filename_dir}{DS}', 'deleteCallback' => function (string $path, Image $entity) { return [ $path . $entity->filename, ]; }, ] ]);`
for example. this 6117de6f-dee3-4d1c-b38b-ceee9a8f8534 folder has 700 permission
The text was updated successfully, but these errors were encountered:
/vendor/josegonzalez/cakephp-upload/src/File/Writer/DefaultWriter.php linie 185, this change fix problem:
if ($adapter instanceof FilesystemAdapter) { return new Filesystem($adapter, Hash::get($settings, 'filesystem.options', [ 'visibility' => Visibility::PUBLIC, 'directory_visibility' => Visibility::PUBLIC, //this line fix issue ])); }
Sorry, something went wrong.
@pawel-sz you have save my day. Thanks
No branches or pull requests
It creates files, but created dir 'filename_dir' has only 700 permissions
for example. this 6117de6f-dee3-4d1c-b38b-ceee9a8f8534 folder has 700 permission
The text was updated successfully, but these errors were encountered: