Answer the question
In order to leave comments, you need to log in
How to upload from FTP?
Hello.
There is a project in laravel. When users upload a file, I save it to another server, via ftp via Storage::disk('ftp').
The download is going great. How can I get this file back? Since Storage::disk('ftp')->get('myfile.pdf') sends me three letters.
Answer the question
In order to leave comments, you need to log in
Thank you all)) I found a solution.
return Response::make(Storage::disk('ftp')->get($file->path), '200', array(
'Content-Type' => 'application/octet-stream',
'Content- Disposition' => 'attachment; filename="'.Storage::disk('ftp')->get($file->path).'"'
));
sends me three letters. - so that they don’t send you here, describe what kind of error comes out. With maximum details.
How do you fill? In Root?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question