mirror of
http://124.126.16.154:8888/singularity/hyperf-admin.git
synced 2026-01-15 03:35:07 +08:00
fix: move_local_file_to_filesystem chmod
This commit is contained in:
@@ -85,7 +85,9 @@ if (!function_exists('move_local_file_to_filesystem')) {
|
|||||||
if ($private) {
|
if ($private) {
|
||||||
$filesystem->setVisibility($save_file_path, AdapterInterface::VISIBILITY_PRIVATE);
|
$filesystem->setVisibility($save_file_path, AdapterInterface::VISIBILITY_PRIVATE);
|
||||||
}
|
}
|
||||||
$filesystem->chmod($save_file_path, 0644);
|
if (method_exists($filesystem, 'chmod')) {
|
||||||
|
$filesystem->chmod($save_file_path, 0644);
|
||||||
|
}
|
||||||
$meta = $filesystem->getMetadata($save_file_path);
|
$meta = $filesystem->getMetadata($save_file_path);
|
||||||
switch (config("file.storage.{$bucket}.driver")) {
|
switch (config("file.storage.{$bucket}.driver")) {
|
||||||
case \Hyperf\Filesystem\Adapter\LocalAdapterFactory::class:
|
case \Hyperf\Filesystem\Adapter\LocalAdapterFactory::class:
|
||||||
|
|||||||
Reference in New Issue
Block a user