You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in _stat() meta['filename'] is never set and $meta['extension'] is set to null (both in the check for existence in attributeCache and when constructing meta from the this->fs object).
// Set item filename.extension to `name` if exists
if (isset($meta['filename']) && isset($meta['extension'])) {
$stat['name'] = $meta['filename'];
if ($meta['extension'] !== '') {
$stat['name'] .= '.' . $meta['extension'];
}
}
Background: I was looking for a quick "temporary" fix for webdav where most of my client software set "Content-Type:" to application/octet-stream or didn't set it at all and that is the webdav server's default.
So I was intending to use the flysystem mime-type-detection package to override the anything returned as application/octet-stream
On the note of older code the import (use) block at the beginning of the file seems to have some invalid (for flysystem^3) entries:
in _stat() meta['filename'] is never set and $meta['extension'] is set to null (both in the check for existence in attributeCache and when constructing meta from the this->fs object).
elfinder-flysystem-driver/src/Driver.php
Lines 268 to 274 in 91267e1
Background: I was looking for a quick "temporary" fix for webdav where most of my client software set "Content-Type:" to application/octet-stream or didn't set it at all and that is the webdav server's default.
So I was intending to use the flysystem mime-type-detection package to override the anything returned as application/octet-stream
On the note of older code the import (use) block at the beginning of the file seems to have some invalid (for flysystem^3) entries:
elfinder-flysystem-driver/src/Driver.php
Lines 8 to 9 in 91267e1
my understanding is that flysystem-cached-adapter is flysystem-1.x only
and
elfinder-flysystem-driver/src/Driver.php
Line 21 in 91267e1
went away in flysystem-2
The text was updated successfully, but these errors were encountered: