cancel
Showing results for 
Search instead for 
Did you mean: 

M2 2.4.3 -> 2.4.3-p1 Media gallery folder access problem

M2 2.4.3 -> 2.4.3-p1 Media gallery folder access problem

Hi there,

 

We recently update our DEV server from 2.4.3 to 2.4.3-p1.

After upgrade found the Media Gallery folder other than wysiwyg and catalog is not accessible.

 

I read the information in this link but we don't have any idea to solve it. 

https://devdocs.magento.com/guides/v2.4/ext-best-practices/tutorials/modify-image-library-permission...

 

Move file is not a good way because lot of page links to files in hidden folder.

May I know how to add the folder to the allow access list?

 

Thanks in advance.

 

Regards, kf

5 REPLIES 5

Re: M2 2.4.3 -> 2.4.3-p1 Media gallery folder access problem

Hello @kf_luk,

 

Greetings of the day!

 

May be it is generating because of the permission issue in "PUB" folder. Please check the permission status.

 

  • Here are the steps to give permission to the folder.
  • Log in to your SSH/CLI with admin permissions and navigate to the root of your store.
  • Set permissions to the files: find . -type f -exec chmod 644 {} \;
  • Set permissions to the directories: find . -type d -exec chmod 755 {} \;
  • Set permissions to special directories: find ./var -type d -exec chmod 777 {} \;
  • find ./pub/media -type d -exec chmod 777 {} \;
  • find ./pub/static -type d -exec chmod 777 {} \;

 

Do check and if you face the same issue, feel free to contact us.

If solved, give KUDOS and accept as a solution.

Thanks!

Re: M2 2.4.3 -> 2.4.3-p1 Media gallery folder access problem

Hi @Milople ,

 

Thanks for your reply. Change directory permission doesn't help.

 

Regards, kf

Re: M2 2.4.3 -> 2.4.3-p1 Media gallery folder access problem

Hi @kf_luk,

 

Greetings!

 

In the adobe's release note they have clearly said "Restricted admin access to Media Gallery folders. Default Media Gallery permissions now allow only directory operations (view, upload, delete, and create) that are explicitly allowed by configuration. Admin users can no longer access media assets through the Media Gallery that were uploaded outside of the catalog/category or wysiwyg directories. Administrators who want to access media assets must move them to an explicitly allowed folder or adjust their configuration settings".

 

See Modify Media Library folder permissions.

 

Try this way to solve your issue. 

Thank you!

Re: M2 2.4.3 -> 2.4.3-p1 Media gallery folder access problem

Hi @Milople ,

 

Thanks for your advise. In my first post already mention the link you wrote.

While, I'm not developer so doesn't know how to make it work on our system.

So I'm looking for advance user here to suggest a solution.

 

Thank you for your advise.

 

Regards, kf

Re: M2 2.4.3 -> 2.4.3-p1 Media gallery folder access problem

Hi @kf_luk,

 

Greetings of the day!

 

We can help you. But to solve this we need to check your whole website. Our technical expert will solve your issue. Please submit your issue here.

 

Please feel free to contact us if you face any other difficulties. 

We'll be more than happy to assist you.

Thank you!

Have a great day!