flysystem-memory
flysystem-memory copied to clipboard
File not found at path - Almost worked!
$filesystem = new Filesystem(new MemoryAdapter());
$filesystem->write('5dcb09e3c2e693debf06069f3de94fde.csv', 'abc');
The only difference here is, I did not read
back the file using new Filesystem
because I need the file to be read by a vendor. You can see in my error output, the vendor tried reading it using the league/flysystem, but for whatever reason it didn't work.
It would be ideal if you could replace one of the filesystem
drivers with a memory
driver, connected to flysystem, this would probably work better for my case.
We had to ditch hard files because our OS decided it did not want the file on our server (DigitalOcean) during a file import.
I found this package because using php://memory was not supported by my vendor. We're using Maatwebsite/PHPExcel for Laravel to read Excel files (CSV, etc) from third party systems.
I'll look for another solution, but if you can look into mine - it would be cool to use this instead, I like your solution better than php://streams.