我们使用$ _file [upload] [name]在php中执行的文件上传有任何大小问题吗?使用这个文件上传是否有任何限制?juz需要知道..
在你的php.ini中
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2M
Run Code Online (Sandbox Code Playgroud)
(并在以下其他人的建议后添加)
; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 8M
Run Code Online (Sandbox Code Playgroud)