skip to Main Content

How to solve WordPress website upload directory permissions, file size, file type and other problem

For Webmasters who often use WordPress websites know that when they upload files like Word, Excel and so on, they will find the upload file is limited to 2M, which is enough for normal blogs, but some large websites are not enough. So, how to solve WordPress website upload directory permissions, file size, file type and other problems?

Need to upload some large files to the web server, you need to solve the directory permissions, file size, upload time, file types and other problems:

1, WordPress upload permissions to 777:

Setting the uploads directory permission to 777, though with some security risks, can only be set to 777 in order to use WordPress to upload files.

2, WordPress upload file size and upload time limit:

If you use the host with Server root permissions, you can modify the php.ini file to solve the problem. If you do not have the permission, you can do the following operations.

First, it is necessary to create a php.ini file and place it under the root of your website. The content is as follows:

Second, the contents of the .htaccess file to be modified, and add the following line:

Since php.ini does not support all of the virtual host, if this does not work then need to contact the host provider to solve.

3, WordPress website upload file types:

There are several common file formats built into WordPress, and if you are not using the file format, you will get security tips and can not upload. If the file format can not be modified, then you need to increase the type of upload files, the operation is to open the functions.php in the theme directory and add some code:

Leave a Reply

Back To Top