[英]php file uploads' size
do we have any size issue with the file uploads that we perform in php using $_file[upload][name]? 使用$ _file [upload] [name]在php中执行的文件上传是否会遇到大小问题? is there any restriction for the file upload using this ??? 使用此文件上传文件是否有任何限制? juz need to know .. juz需要知道..
In your php.ini 在你的php.ini中
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2M
and (added after suggestions from others below) 和(在以下其他人的建议之后添加)
; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 8M
You can limit maximum file uploaded size (you should change appropriate directives in your php.ini
file). 您可以限制最大文件上传大小(您应该在php.ini
文件中更改相应的指令)。 There are no other ways to limit uploaded file size. 没有其他方法可以限制上载的文件大小。
upload_max_filesize = 1M //Maximum size of uploaded file
max_post_size = 1M //Maximum size of whole POST request
You can also change limits in .htaccess file: 您还可以更改.htaccess文件中的限制:
php_value upload_max_filesize 10M
php_value post_max_size 20M
是的,这受到上载最大文件大小的限制,并且更普遍地受到php.ini中post_max_size设置的限制。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.