This works fine and uploads to S3 fine, but when on staging server which is on Vapor, I get an error: fopen(1587492857.jpg): failed to open stream: Read-only file system
Why would this be and how can I overcome it so this works as it does locally?
Although this uploads to S3 locally, I've found it's actually storing the file in public/the-file-name.jpg also. So my guess would be the Storage::putFile is wrong or something.