0
点赞
收藏
分享

微信扫一扫

Laravel移动本地文件到ftp服务器

从本地移动文件到远程服务器:

laravel 5.7 才支持这个功能

Storage::disk('ftp')
->writeStream(
'remote-file.zip',
Storage::disk('local')->readStream('local-file.zip')
);

To response-streams:

return response()->stream( function() {
fpassthru( Storage::disk('s3')->readStream('file.zip') );
});

参考链接:​​https://github.com/laravel/framework/pull/23755​​


举报

相关推荐

0 条评论