Skip to content

Commit

Permalink
Fix:修复本地上传,图片压缩失效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchunshu committed Feb 10, 2023
1 parent cd6c6dd commit b696dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Plugins/Core/src/Handler/Store/LocalFileStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function save(UploadedFile $file, $folder, $file_prefix = null, $move = f
throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory));
}
}
System::exec('mv ' . $path . ' ' . $folder_name."/".$filename);
System::exec('mv ' . $path . ' ' .public_path( $folder_name."/".$filename));
return [
'url' => "/{$folder_name}/{$filename}",
'path' => public_path("{$folder_name}/{$filename}"),
Expand Down

0 comments on commit b696dd6

Please sign in to comment.