简体   繁体   English

如何使用临时 url 从 Laravel 中的文件服务器下载

[英]how to download with temporary url from file server in laravel

i have two server.我有两个服务器。 website server and file server.网站服务器和文件服务器。 i want to create feature for download file with temporary URL from web application server.我想使用来自 Web 应用程序服务器的临时 URL 创建下载文件的功能。 my files is exists in the second server.我的文件存在于第二台服务器中。 how to do i this work?我该怎么做这项工作?

this my plan:这是我的计划: 这是我的计划

you need to create a Storage::Disk with sftp driver and then, retrive files from there like a normal folder.您需要使用 sftp 驱动程序创建一个Storage::Disk ,然后像普通文件夹一样从那里检索文件。

Please take a look to the filesystem documentation: filesystem docs .请查看文件系统文档: filesystem docs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM