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
</Files>

It resolved my issue!
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Is it possible to add multiple backup destinations on the cPanel server?

Is it possible to add multiple backup destinations on the cPanel server?Solution :- Yes, its...

Error displaying the error page: The cachelite Cache Storage is not supported on this platform. (Joomla error)

While accessing the Joomla site, I was getting error as - Error displaying the error page: The...

How to reset Joomla Admin Panel Password?

Many times we used to forgot the current password of Joomla Administration panel and get in...

Database connection error (2): Could not connect to MySQL- Joomla Issue

While accessing the Joomla site I was getting the error as "Database connection error (2): Could...

Loopback test error: `Operation timed out after 8000 milliseconds with 0 bytes received - WordPress issue

I was getting below while generating backup from BackupBuddy ( in WordPress ) on LiteSpeed server...

Powered by WHMCompleteSolution