ZenCart文件上传问题

时间:2019-03-12 10:31:35

标签: file-upload zen-cart

文件上传时遇到问题。 在错误日志中显示以下信息:

#1  is_uploaded_file() called at [/home/public_html/includes/classes/upload.php:86]
#2  upload->parse() called at [/home/public_html/manage/includes/modules/new_product_preview.php:148]
#3  require(/home/public_html/manage/includes/modules/new_product_preview.php) called at [/home/public_html/manage/product.php:120]

为文件上传设置的限制:

* file_uploads: On
* upload_max_filesize: 200M
* max_input_time: 60
* memory_limit: 1024M
* max_execution_time : 100000
* post_max_size: 200M

文件上传成功,最大2MB,未上传大文件

1 个答案:

答案 0 :(得分:0)

请参阅有关文件上传的文档:https://www.zen-cart.com/content.php?306-what-is-the-maximum-file-upload-size-for-my-site

请确保:

  • 管理员中的设置也高于2MB
  • 通过在项目中调用phpinfo()正确加载php设置。

注意:您的“错误”会漏掉一条实际的错误消息,这只是一个通知