difference between “upload_max_size” and “upload_max_filesize”

霸气de小男生 提交于 2020-12-07 08:25:10

问题


I've found some people say about ini_set("upload_max_size"),

But does upload_max_size exist at all, and is it something new? As I know upload_max_filesize is the correct syntax. Am I wrong?


回答1:


Yes ini_set("upload_max_size") function exist in wordpress. for example:

@ini_set( 'upload_max_size' , '64M' ); using in functions.php file link is HERE

In php.ini -> upload_max_filesize is using.

Finally htaccess syntax is php_value upload_max_filesize




回答2:


I'm posting this as a community wiki since it was raised in comments.

As per my comments:

"If you didn't find it on Google or the php.net website, then it doesn't exist. "but does upload_max_size exist at all? Is it something new?" - No".

and a link for a search on the php.net website:

"http://php.net/manual-lookup.php?pattern=upload_max_size&scope=quickref"



来源:https://stackoverflow.com/questions/45712556/difference-between-upload-max-size-and-upload-max-filesize

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!