【发布时间】:2017-11-17 10:27:01
【问题描述】:
我正在使用 Laravel 5.4。我正在尝试使用
将文件上传到谷歌驱动器Storage::disk('google')->put('file.txt', 'hello world')
使用上述方法在 Google Drive 文件夹中创建名为“file.txt”的文件。但我必须上传现有的 zip 文件。
我正在使用下面的代码将 zip 文件上传到谷歌驱动器中。
Storage::disk('google')->put('RandomFileName.zip', storage_path('app/backup.zip'));
Zip 文件已创建,但有时损坏的文件大小为 50 字节。
【问题讨论】:
-
我想上传文件到谷歌驱动有什么办法吗?
标签: php laravel laravel-5 database-backups