Forbidden. You don’t have permission to access /wp-content/uploads/file-name.pptx

While uploading the files .pptx and .ppt files from WordPress admin dashboard, I was getting the error as below -
Forbidden. You don’t have permission to access /wp-content/uploads/…file-name.pptx on this server.

Solution -

1. Please check the files and directories permission. File permission should be 644 and directory permission should be 755. You can fire below command under cPanel >> File Manager >> public_html to correct the permission -

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

2. Please check the .htaccess file (under cPanel >> File Manager >> public_html ), there should be 'ppt' and 'pptx' extension should be enabled. Below is the code for you which you should add in .htaccess file -

Order deny,allow
Deny from all
<Files ~ ".(pdf|csv|doc|docx|jpe?g|png|gif|ppt|pptx)$">
Allow from all

It resolved my issue!

Was this answer helpful?

 Print this Article

Also Read

The MySQL server is currently offline. Mysql::initcache() failed: The mysql server is offline.

I was getting below error while accessing MySQL Databases from cPanel though MySQL service was...

How to check the PHP version and configuration for your website?

'phpinfo.php' is the file which is used for checking the PHP version and configuration on cPanel...

How to prevent xmlrpc attack on the WordPress?

To prevent xmlrpc attack in WordPress website just add below code to the .htaccess file of the...

requires the ionCube PHP Loader to be installed by the website operator

I was getting below error while installing Softaculous on the cpanel server -. requires the...

How to renew the cPanel license on your server?

Quickest way to renew cPanel license - First, you may check if the server has valid license for...

Powered by WHMCompleteSolution