1、In the picture uploading function, the disk used is FTP
Current rough flow
Back end acquisition
$file = $request->file()，direct
storeAsTo the FTP server
tmpTemporary file movement, move to local
sourceThe following operation of the thumbnail of the directory (
Question 1：Do we need to do such a superfluous operation on TMP? Or is there any way to do thumbnails and watermark operations directly?
Intervention\ImageThird party packageTo the local
sourceThe picture of the directory is a thumbnail
Image::make($tmp_file_path)->widen()Operation (at this time how to send a thumbnail
This step is similar to the third step.
The old driver has trouble with other processes
Man, I had this problem too. I just cut the front end and pass the big and small pictures to me, and then I send them to the FTP server. The watermark has not been made.
I use the default Laravel 5.1 upload file. Why can’t I connect directly to FTP?