Choose media type before uploading media through content section #10602
Replies: 1 comment 3 replies
-
Thanks @sigrundis - this is due to SVG by default not being set as an image file type. In order to preserve backwards compatibility, we currently can't change that (people expecting SVG to be created as a This seems like a good one to fix for v9, adding svg here and mark it as breaking change: https://github.com/umbraco/Umbraco-CMS/blob/v8/dev/src/Umbraco.Core/Configuration/UmbracoSettings/ContentImagingElement.cs#L17 In the mean time, you can add <imaging>
<imageFileTypes>jpeg,jpg,gif,bmp,png,tiff,tif,svg</imageFileTypes>
</imaging> I'll put this as up for grabs to fix in v9, accepting svg as an image by default. |
Beta Was this translation helpful? Give feedback.
-
Umbraco Version
8.14
Description
I love the fact that with the Media Picker 3 you can limit data/document types to specific media types. However, if a content editor wants to upload new media while editing the content, they cannot choose the type of media uploaded.
Example
I created a media type for SVG files only and used the editor for a field in a document type. However, if content editors want to upload a new SVG file to use for the field through the content editor (while editing the content) they cannot select the media type of the file. The file is set to a default type (in this case media type: file), and because the field is limited to media type: SVG, they cannot use the file they just uploaded. They need to upload new files through the media section to be able to select the correct media type.
Steps to reproduce
Create new media type -> add property -> select File Upload -> Edit it by clicking on it -> Name it Upload SVG (or something similar) -> under Configuration, set the accepted file extensions to svg -> make the SVG upload field mandatory
Create new Data Type -> Select Media Type under Property Editor -> Select the SVG media type under Accepted types
Open the Document Type that should use the svg file field -> add property -> select the SVG Media Data Type as editor
Create Content using the Document Type that includes the svg media upload field -> Upload new SVG file -> By default, it gets uploaded as media type: file. Because the field is restricted to using media type: SVG only, the newly uploaded file cannot be used.
Expected result
It would be nice if the content editor could select the media type of the files uploaded from the content section.
Beta Was this translation helpful? Give feedback.
All reactions