Magento-上传图像时出错 [英] Magento - Error while uploading images
问题描述
我无法将图片上传到magento中的产品,即无法添加产品图片. 当我尝试上传大图片(大约600kb)时,它说
I am not able to upload an image to a product in magento,i.e,I am unable to add a product image. When I try to upload large images(about 600kb) ,it says
SSL错误:无效或自签名证书
SSL Error: Invalid or self-signed certificate
当我尝试上传小图片(大约3 kb)时,它说
When I try to upload small images (abut 3 kb),it says
上传HTTP错误
Upload HTTP Error
我确实迫切需要帮助.请帮助我. 非常感谢.
I do need help urgently.Please please help me. Thanks a lot.
另外:我在Ubuntu中使用xampp运行magento.
Additionally: I run magento using xampp, in Ubuntu.
推荐答案
过去,当配置设置错误时,我遇到了SSL上传问题.转到系统>配置>网络>安全,然后再次检查您在此处设置的内容.
In the past I've encountered upload issues with SSL when the config is badly set. Go to System > Configuration > Web > Secure and double check what you have set there.
- 基本URL (通常与不安全"部分中的内容相同),但使用
https:
而不是http:
- 基本链接URL
{{secure_base_url}}
- 基本外观URL
{{secure_base_url}}skin/
- 基本媒体URL
{{secure_base_url}}media/
- 基本JavaScript URL
{{secure_base_url}}js/
- Base URL Typically the same as in the Unsecure section but with
https:
instead ofhttp:
- Base Link URL
{{secure_base_url}}
- Base Skin URL
{{secure_base_url}}skin/
- Base Media URL
{{secure_base_url}}media/
- Base JavaScript URL
{{secure_base_url}}js/
如果这些URL不同,则基于Flash的上传器会出现安全问题.有时,URL不能使用{{secure_base_url}}
-也许用于CDN-因此解决该问题的方法是使用
If those URLs differ then the flash-based uploader has security problems. Sometimes the URLs cannot use {{secure_base_url}}
- perhaps for a CDN - and so the way to get around it is with No Flash Image Uploader extension.
这篇关于Magento-上传图像时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!