Open emyasnikov opened 2 years ago
I can confirm that this isn't working, running into the same issue after upgrading from Laravel 8 to Laravel 9
I looked into this issue a bit more and it seems that it only occurs with folders that contain subfolders. It seems like something has changed in the behavior of flystem that is causing this.
This appears to happen to me because lfm is trying to get the last_modified
attribute of directories, which s3 doesn't provide.
My error as followed with a directory containing subfolders:
Unable to retrieve the last_modified for file at location:
It appears to be very similar to the issue noted over on flysystem's repository, however it has been closed as not compelling enough to resolve: https://github.com/thephpleague/flysystem/issues/1343
It seems that lfm would need to check if the item is a directory when filling the item_column
attributes, and remove time
from that list for directory items.
Possible Workaround: Remove time
from item_columns
in the lfm.php
config file. This works for me.
would be great if this gets solved soon
thanks
@lildigiman it worked well, but when I open the filemanager it shows 'Invalid date' under the name of each file. I know that removing time
from item_columns
will affect the filemanager. But anyone know how to solve it?
After upgrade from Laravel 8 to 9 and accordingly Flysystem 1.x to 3 filemanager doesn't work with folders with a lot of files since league/flysystem-cached-adapter packages can't be installed anymore.
Please check the following instructions before submitting a bug :
And provide the followings :