File Upload issue: Forbidden. You don't have permission to access this resource.

7 posts by 2 authors in: Forums > CMS Builder
Last Post: February 15, 2023   (RSS)

By zaba - February 9, 2023 - edited: February 13, 2023

Hi

I am on the latest CMSB v3.57 (Build 2312)

PHP v8.2

Use WEBP enabled

I get an error in the upload box when I try upload either a jpg png or webp image

Forbidden
You don't have permission to access this resource.

I can't figure out why.

All permissions on Uploads Directory and Thumbs Directory are set to 755 with correct owner.

By zaba - February 14, 2023

Attached is the screen grab

By Dave - February 14, 2023

Yea, Mod_Security could be the issue.  See if your host can disable it for the cms folder.

Dave Edis - Senior Developer
interactivetools.com

By zaba - February 14, 2023

It only started happening since I upgraded cms and PHP to 8,2.

By zaba - February 14, 2023

The server people say there is nothing in the log files

By zaba - February 15, 2023

Dave has sorted this. It was an issue with the upgrade of the uploads table.

  • I re-uploaded this file from the latest CMSB release: /public_html/cmsb/data/schema/uploads.ini.php
  • I clicked on: CMS Setup > Section Editors.  This automatically checks all the schemas and adds missing fields (it added some columns)

I thought i'd add in here as a port of call for others with a similar issue.

Thanks again Dave, you are awesome!