Closed ozzargueyo closed 6 years ago
There are these three options:
ftp://user:password@example.com/path/to/file.psd
downloadFile
function followed by readfilereadFile
function, or for example the Flysystem streaming functions.Option 1 leaks the username and password so you have to trust the user you give the link to.
Option 2 and 3 both requires the file to pass through your server so you have to pay for the bandwidth. Option 3 needs some tinkering to make it actually stream the file. If you do it wrong it will just end up in the output buffer and act exactly like in option 2.
There is no way to stream the file directly to the browser without giving away the username and password.
Hi, nice library. I am trying to download a large file, an PSD file, that is in a remote ftp server that I owned. I'm developing a web app that can download directly to the user's browser. Is there a way to do this, without download it in my server and then to the user?
Thanks!