Magento1.x老版本后台莫名其妙无法上传产品图片,出现Disallowed file format

作者:admi... 点击数: 0 收藏到会员中心
最后编辑时间: 2022-01-25 21:17

12201923_01.jpg

出现此种问题的解决方法如下:

打开

app\code\core\Mage\Catalog\etc\system.xml


文件 大约215行,查看后台是否有定义dimension ,如没有则添加代码

<small_width translate="label comment">
                            <label>Small Image Width</label>
                            <comment>Maximum width small product image will be scaled down to in pixels</comment>
                            <frontend_type>text</frontend_type>
                            <sort_order>20</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </small_width>


文件后添加

    <max_dimension translate="label comment">
                            <label>Maximum resolution for upload image</label>
                            <comment>Maximum width and height resolutions for upload image</comment>
                            <frontend_type>text</frontend_type>
                            <sort_order>30</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                        </max_dimension>



本文章需要购买之后才能查看到完整内容!
付费提醒
此内容需要购买之后才能看到!
此次购买需要 支付人民币 ¥0.01 立即购买
内容说明:
如您需要转载本文请保留以下信息是对作者发文的支持与尊重:

Magento1.x老版本后台莫名其妙无法上传产品图片,出现Disallowed file format 来源于 https://www.magentola.com/news-read-34.html
上一篇:没有了
下一篇:MAGENTO1.X版本如何删除产品的时候删除图片
相关内容
产品推荐