$ _FILES数组有时是空的

时间:2016-10-19 08:45:40

标签: php html magento magento-1.9

我在magento CE 1.9.2.1中发送文件表格时遇到问题。当我试图在php中附加文件 $ _ FILES数组是空的但有时不是。请帮我找到解决方案。这是html表单:

<form action="<?php echo $this->getUrl('quote/index/save', array('_secure'=>true)); ?>" id="get_a_quote" method="post" name="get_a_quote" enctype="multipart/form-data">
    <div id="wizard">
        <label for="attachment">Attachment</label>
        <input type="file" name="attachment[]" multiple="multiple" />
        <input id="submit" type="submit" name="save" value="Get A Quote" />
    </div>
</form>
在IndexController中

我的保存操作代码是:

print_r($_FILES); die;// result Array() but sometimes Array(bla bla bla)

我的服务器信息是:

post_max_size = 8M
upload_max_filesize = 16М

0 个答案:

没有答案