Open NikDevPHP opened 2 months ago
I can't help with FlySytem, I've never used it myself. We recently had many issues with that, where I just trusted other devs about possible solutions. If you'd like to propose a fix, you can open a PR, but I'll need a review from someone else.
Otherwise, you can simply decorate the FlysystemStorage service and adapt it to your needs.
Bug Report
We are encountering an issue where VichUploaderBundle's DownloadHandler is unable to retrieve the absolute file path when using Flysystem as the storage driver. This results in the inability to determine the file's mime-type.
The issue is triggered by the use of Flysystem with inject_on_load: true. The DownloadHandler is expecting an absolute path but is instead receiving a non-absolute path, leading to an error when attempting to fetch the mime-type.
https://github.com/dustin10/VichUploaderBundle/blob/master/src/Handler/DownloadHandler.php#L43