jacobcyl / Aliyun-oss-storage

阿里云OSS laravel storage Filesystem adapter, 打造Laravel最好的OSS Storage扩展.
http://jacobcyl.github.io/Aliyun-oss-storage/
MIT License
521 stars 161 forks source link

laravel5.8 上传文件 Storage::putFile #83

Open jonexyz opened 4 years ago

jonexyz commented 4 years ago

use Illuminate\Support\Facades\Storage; use Illuminate\Http\File;

Storage::putFile( $path ,new File($file)); //返回值为文件路径 $path 为文件目录, $file 为本地文件路径

xxy123456 commented 3 years ago

我使用putFile()方法,文件可以上传到oss,但是接口一直没有返回值,直到504 Gateway Time-out