How To Change The Maximum File Size Upload?

2020-05-02 20:32发布

how do you change the maximum upload file size, i want people to only be aloud to upload 25mb video files on my site, can you do that?

like in a .htaccess File But Without Getting A 500 ERROR

UPDATE: http://www.triggervid.com/

when a user uploaded's a video i want it to say Something like - Sorry The file you are trying to upload is to big or it exceeds the maximum limit, only if it is over 25mb. sorry im not very Well At explaining things :)

P.S im using PHP mainly

2条回答
等我变得足够好
2楼-- · 2020-05-02 20:46

In your php.ini file you can modify these lines as appropriate:

upload_max_filesize = 10M
post_max_size = 10M
查看更多
虎瘦雄心在
3楼-- · 2020-05-02 20:46

you need to do changes in php,ini file .. by default for upload_max_filesize, it is 32Mb and for post_max_size it is 16Mb for Apache 2.0 but you an change as per your requirement

upload_max_filesize = desired file size.. (ie 5M) post_max_size = desired file size.. (ie 5M) )

查看更多
登录 后发表回答