upload image problem with access denied

‘sugar_version’ => ‘6.5.25’,
‘suitecrm_version’ => ‘7.10.20’

Hi to all, i have a strage problem with the images uploaded on my crm. If i create a product and i insert an image, the url created gives me access denied. But the folder has all the permission, and if i create a “tmp” folder and i change the final url, all works well. I don’t want tot make a new folder but i really don’t understand why i have this problem. And only with product, bacuase if i made a document and i upload an image, it works fine.

any suggest?

When you view the IMAGES via CRM, can you inspect and see what URL it displays ?
In your config.php what is the value for site_url ??

the url is http://localhost/SuiteCRM/upload/E869312F-A3FA-F29D-5A26-E3DFD30D0898_fornello-elettrico-bianco-1-pias-1500w.jpg

and my site url is ‘site_url’ => ‘http://localhost/SuiteCRM’,

In your .HTACCESS file on CRM Root can you comment the following line (add # in front of the line as shown)

#RedirectMatch 403 (?i)/+upload

It works!! why it’s blocked in the htcaccess? i’ve used a lot of crm version and i never find a problem like that.

See this https://github.com/salesagility/SuiteCRM/pull/7762

thanks to all

In SuiteCRM v. 8.1.2 inside WSL2:

  1. edit: public/legacy/.htaccess
    #RedirectMatch 403 (?i)/+upload

  2. wsl sudo chmod -R 777 /var/www/crm/public/legacy/.htaccess