我们有一个运行Drupal 6的旧站点,当我们试图通过接口上传一个文件时,ajax上传程序会旋转,并重新加载“选择文件”对话框。检查我最近得到的错误日志:
The file upload failed: field_small_banner_0如果我进入location (?q=filefield/ahah/gallery/field_gallery_image/0),就会得到:
{ "data": "\x3cdiv class=\"messages error\"\x3e\nAn unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (64 MB) that this server supports.\x3c/div\x3e\n" }我见过提到ModSecurity,但这不是活动的。我检查了文件文件夹的权限,这是777。
我检查了临时文件夹的phpinfo,设置为/tmp
非常感谢:)
发布于 2014-02-15 19:56:48
文件有多大?错误消息显示您可能超过了64 msg的限制。你能上传一个1MB的文件吗?
如果您可以上传一个1MB的文件,那么您的解决方案将是增加服务器对最大上传大小的限制(请参阅您的php.ini文件),以允许上传所需大小的文件。
https://drupal.stackexchange.com/questions/103555
复制相似问题