1

在最近将站点升级到 v4.9.1 后,它不再填充 umbracoBytes、umbracoExtension 标签。 在此处输入图像描述

这是我的 umbracoSettings.config

<imaging>

            <!-- what file extension that should cause umbraco to create thumbnails -->

            <imageFileTypes>jpeg,jpg,gif,bmp,png,tiff,tif</imageFileTypes>

            <!-- what attributes that are allowed in the editor on an img tag -->

            <allowedAttributes>alt,border,class,style,align,id,name,onclick,usemap</allowedAttributes>

            <!-- automatically updates dimension, filesize and extension attributes on upload -->

            <autoFillImageProperties>

                <uploadField alias="umbracoFile">

                    <widthFieldAlias>umbracoWidth</widthFieldAlias>

                    <heightFieldAlias>umbracoHeight</heightFieldAlias>

                    <lengthFieldAlias>umbracoBytes</lengthFieldAlias>

                    <extensionFieldAlias>umbracoExtension</extensionFieldAlias>

                </uploadField>

            </autoFillImageProperties>

        </imaging>
4

0 回答 0