简体   繁体   中英

Maximum upload size in wordpress is 128mb but can't upload file size greater than 2mb

My WordPress installation has a maximum upload size of 128MB in the php.ini but I can't upload any file above 2MB in size. I have checked and edited both php.ini in CPanel and.htacess in file manager but the error won't go away.

What can I do to solve this problem?

You need to set the value of upload_max_filesize and post_max_size.

; Maximum allowed size for uploaded files.
upload_max_filesize = 128M

; Must be greater than or equal to upload_max_filesize
post_max_size = 128M

Restart your HTTP server to use the new configuration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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