barryvdh / elfinder-flysystem-driver

elFinder driver for Flysystem
183 stars 41 forks source link

Driver is reading files for mimetypes instead of listing them #66

Closed incoming-th closed 5 years ago

incoming-th commented 6 years ago

Hi,

When clicking on a folder from a disk, it often finishes with 504, meaning timeout:

2017-12-13 002424

The screenshot below show that commands from elFinder driver is reading a 24Mb mp4 files instead of only doing listing:

img_13122017_194631_0

By doing that, elFinder timeout and show 504 as it is doing that for all files in folder. Imagine if you have 100 files of 5Mb.

The elFinder author found that it may be related to this:

https://github.com/barryvdh/elfinder-flysystem-driver/blob/master/src/Driver.php#L303-L323

Any idea how to mitigate this issue?

Thank you

incoming-th commented 6 years ago

Meanwhile waiting for official fix, this is a dirty workaround:

2017-12-18 002434