-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploading unknown filetypes is no longer possible #572
Comments
Turns out this is a bug upstream: thephpleague/flysystem#1468 I'll keep this issue open in the meantime - if they decide they don't consider it to be a bug, we may need to work around it. |
The PR for flysystem has been merged - once a release has been tagged which includes that code I'll close this issue. |
Frustratingly, the bug was fixed and released - and then immediately they decided to unfix it and make it opt-in. I'll put this in our backlog to discuss. |
This is created via $mimeTypeDetector = $mimeTypeDetector ?? new FallbackMimeTypeDetector(new FinfoMimeTypeDetector(), true); If anyone is using < 3.23.0 it shouldn’t cause any harm, the extra constructor arg will just be discarded. |
Right, that's exactly the opt-in behaviour I mention in my comment. I forgot that constructor args are discarded if not used.... I guess we could ship that in a patch without bumping the dependency, then. We wouldn't be able to add a test for it though because the prefer-lowest build would fail. |
@edwilde I've raised a PR to opt-in to the bug fix. Would you like to create a PR to add the braille format change into the 5.2.0 changelog? |
Linked PR has been merged, will be automatically patch released shortly |
@GuySartorelli PR for the changelog update is added 🚀 |
This appears to be caused by
league/flysystem
v3 changing to throwing exceptions rather than returningnull
- see a similar issue in laravel.I have added the appropriate configurations to allow
brf
(braille format) files, as per the documentation.This works just fine in CMS 4.13, but fails in CMS 5.0 with the following error:
The exception is raised on the flysystem adapter and unhandled in the Silverstripe Asset store class.
That was fixed, released, and then rolled back. It is now an opt-in to fix that behaviour by passing a new argument to the constructor.
Acceptance Criteria
true
to the new opt-in argument in theFallbackMimeTypeDetector
constructor.NOTE
Once this has been resolved, we should raise a new PR to add #573 to the changelog.
No sense adding it until this is resolved.
PRs
The text was updated successfully, but these errors were encountered: