- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: M2 2.4.3 -> 2.4.3-p1 Media gallery folder access problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: M2 2.4.3 -> 2.4.3-p1 Media gallery folder access problem
Hi kf
Did you find the exact solution to this?
I have the same problem.
When I try to insert an image in a cms page and click the 'insert image'. the 'insert file' page doesn't display any of the image folders including the wysiwyg one.
I just see the spinning loading icon and nothing loads.
Thought you might have solved it and you could share it.
Thanks
Andy
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: M2 2.4.3 -> 2.4.3-p1 Media gallery folder access problem
Hey,
To add a folder to the allow access list in the Media Gallery for your Magento 2.4.3-p1 installation, you need to modify the view.xml file in your theme. This file controls the allowed directories for the Media Gallery. Here’s how you can do it:
1) Locate the view.xml file:
The view.xml file is usually located in your theme’s etc directory. The path might look something like this:
app/design/frontend/[Vendor]/[Theme]/etc/view.xml
2)Edit the view.xml file:
Add your custom folder to the view.xml configuration under the <media_gallery> node. If the <media_gallery> node does not exist, you need to create it. Here’s an example of what the configuration might look like:
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd"> <media_gallery> <directories> <directory>catalog</directory> <directory>wysiwyg</directory> <directory>custom_folder</directory> <!-- Add your custom folder here --> </directories> </media_gallery> </view>
3) Flush the cache:
After making changes to the view.xml file, flush the Magento cache to apply the changes. You can do this by running the following commands:
bin/magento cache:clean bin/magento cache:flush
Thank You!
200+ Magento 2 Extensions for Enhanced Shopping Experience.