Level 3
Never mind, everything works as it should.
Hi there,
I'm already trying for 3 day now to upload images to an remote server using the Storage facade and the putFile method.
The connection to my remote server is correct. I can retrieve a list of the files that are there. I can also upload an image to the remote location, but after the upload, I open the image and it is corrupted. I can only see colorfull lines. I tried many things and searched the internet but without luck.
My upload function where $localFile is the location to my file to upload.
Storage::disk('sftp')->putFile('photos', new File($localFile));
Link to image how it's uploaded: https://ibb.co/z62bGTp
Hope someone can help me out.
Please or to participate in this conversation.