Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jonexyz opened this issue Jun 22, 2020 · 1 comment
Open

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

jonexyz opened this issue Jun 22, 2020 · 1 comment

Comments

@jonexyz
Copy link

jonexyz commented Jun 22, 2020

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

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

@xxy123456
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants