Skip to content

Block thumbnail picker should be restricted to image files #20574

@bjarnef

Description

@bjarnef

Which Umbraco version are you using?

16.2.0

Bug summary

It seems block thumbnail picker list all files unlike in v13, where the static file picker was configured to image file extensions including .svg:

Image

Perhaps we can map e.g. .css and .js files to specific icons instead of the circle-dashed icon.

In v13 folders and other file extensions were disabled.

Image

The custom view for block no longer use static picker (filtering .htm and .html files) to pick file, but it is worth checking if the static file picker allow to restrict allowed/not allowed files.

Ideally I think it would be nicer to render the thumbnail as an image preview like in block card itself and visualize how the selected thumbnail will look in block picker.

Image

Specifics

No response

Steps to reproduce

Open thumbnail picker for a block and noticed CSS files etc, are listed and can be selected as well.

Expected result / actual result

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions