简体   繁体   English

不上传文件到服务器

[英]Does not upload file to the server

I have a problem with uploading files to the server. 我将文件上传到服务器时遇到问题。 I try to upload a PDF file type and content of the $ _FILES variable is as follows. 我尝试上传一个PDF文件类型,$ _FILES变量的内容如下。

array(1) { ["userfile"]=> array(5) { ["name"]=> string(46) "archive.pdf" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(1) ["size"]=> int(0) } } 

The value of "error" is 1, so that even gets into the directory "tmp" from the server. “错误”的值为1,因此甚至可以从服务器进入目录“ tmp”。

The file weighs in at 6.60M. 该文件重为6.60M。 I have checked the PHP directives: 我检查了PHP指令:

post_max_size = 8M
upload_max_filesize = 2M

Does anyone know why this happens?. 有谁知道为什么会这样?

Thank's for help. 感谢帮助。

Regards! 问候!

The upload_max_filesize is 2M. upload_max_filesize为2M。 Your file is 6.60M. 您的文件为660万。 Increase the upload_max_filesize to something greater than 6.60M such as 10M. upload_max_filesize增大到大于660万的值,例如10M。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM