我需要将文件从Storage::disk('local')存储到Storage::disk('google')。我尝试了下一步代码,但不起作用
$file = \File::get(storage_path('my/file.docx'));
\Storage::disk('google')->put($path, $file);如果我从请求中收到它,它就会工作
\Storage::disk('google')->put($path, $request->file);谁能帮帮我。谢谢
发布于 2021-08-05 11:37:32
这是对我问题的回答
\Storage::disk('google')->putFile($path, new File(storage_path('file.docx')), 'file.docx');https://stackoverflow.com/questions/68664494
复制相似问题