fix(core): Always try to generate some kind of preview#50622
fix(core): Always try to generate some kind of preview#50622provokateurin wants to merge 2 commits intomasterfrom
Conversation
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
2aef985 to
c75fba9
Compare
come-nc
left a comment
There was a problem hiding this comment.
PHP changes are legit, but I do not know enough about this to judge the API change implied here.
|
The API change itself is backwards compatible, since the removed parameters are just ignored now. Any client still sending them will not notice that they are not used anymore. |
It will change the behavior as you now get the 303 for the mimetype even if you do not request it. Not sure if this is bad or not. But a safer approach would be to reduce this to only the folder mime type change. |
You mean because a client would then chose to display it's own mimetype preview? |
Yes especially to get mimetype icons in the current color schema (dark / bright). |
|
Yes especially to get mimetype icons in the current color schema (dark / bright). IMO this should be a parameter and then the server would return the correct one. |
|
desktop files client would be fine and was not using the 2 removed arguments |
This is another issue and much harder, as we in general need to discuss how to proceed with icons. |
Agreed, there are a bunch of problems with how we currently deal with icons. Maybe something to discuss in the Files Team Hack week ;) |
Summary
Instead of providing the option to generate fallback previews this PR changes it to always generate some kind of preview if possible.
I don't see a reason why we shouldn't ever fallback to the mimetype or symbolic icon in case we are not able to generate a proper preview or it's a folder.
This also improves the UX, in case developers forget to manually request the mimeFallback, as now the users still see some preview.
Checklist