Kirby v3.5.0-rc.5 Release Notes
Release Date: 2020-12-08 // almost 4 years ago-
All the good stuff from:
- ๐ https://github.com/getkirby/kirby/releases/tag/3.5.0-rc.1
- ๐ https://github.com/getkirby/kirby/releases/tag/3.5.0-rc.2
- ๐ https://github.com/getkirby/kirby/releases/tag/3.5.0-rc.3
- ๐ https://github.com/getkirby/kirby/releases/tag/3.5.0-rc.4
and โฆ
๐จ More detailed
accept
options for file blueprints๐ง Previously, file blueprints could be configured to only allow specific MIME types to be uploaded.
It is now possible to limit the uploaded files based on the file extension and/or the file type.
accept: extension: jpg, png
accept: type: image, audio, video
๐ป These restrictions can be combined with a custom set of MIME types. This makes it possible to define MIME types that are compatible with all browsers while still protecting the uploads based on the extension and/or file type:
accept: mime: image/*type: image
In this example, Kirby will generate a file upload input with an
accept="image/*"
attribute and will then validate both the MIME type and the detected file type on the server after the file is uploaded.0๏ธโฃ If no restrictions are defined in the file blueprint, Kirby will now limit the accepted uploads to the types image, document, archive, audio and video by default. This protects your sites against unexpected uploads like code files that could be used to attack the server or the visitor's browsers.
You can disable the automatic types and allow all uploads like this:
accept: true# or:accept: mime: nullorientation: square...
- ๐ New
F::typeToExtensions()
method
โจ Enhancements
- Open table block on dblclick instead of single click
- โ Add props docs to writer and list fields
- ๐ Support import of em marks
- ๐ New set of default ratios for the image block
- โก๏ธ Updated languages (ko, id, it)
๐ Fixes