V
V
VitaliyBorys2018-06-06 16:33:10
FTP
VitaliyBorys, 2018-06-06 16:33:10

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

2 answer(s)
V
VitaliyBorys, 2018-06-06
@VitaliyBorys

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).'"'
));

A
Ainur Shakirov, 2018-06-06
@Fqyeh29

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 question

Ask a Question

731 491 924 answers to any question