Post by Dutch Pride Code » Wed Jan 18, 2023 10:42 pm

When selecting an image, for example for a product, using the built-in file manager:
How do I gain access to the entire 'image' directory, instead of just the 'catalog' part? Or even better, how do I gain access to my entire site directory structure?

Using the default file manager within OC 3.0.3.2
Last edited by Dutch Pride Code on Mon Jan 30, 2023 2:19 am, edited 1 time in total.

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by paulfeakins » Thu Jan 19, 2023 6:08 pm

EMGX wrote:
Wed Jan 18, 2023 10:42 pm
Or even better, how do I gain access to my entire site directory structure?
You shouldn't do that through OpenCart, you should do that through your web hosting control panel.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Dutch Pride Code » Fri Jan 20, 2023 4:27 am

paulfeakins wrote:
Thu Jan 19, 2023 6:08 pm
EMGX wrote:
Wed Jan 18, 2023 10:42 pm
Or even better, how do I gain access to my entire site directory structure?
You shouldn't do that through OpenCart, you should do that through your web hosting control panel.
A third party application is putting images in a separate directory in my site root. I need to assign those images to a product or page within OpenCart. So I pretty much need to do that through OpenCart. I cannot copy all those images to the OC image directory, it takes up twice as much space.

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by halfhope » Fri Jan 20, 2023 7:17 am

Hi!

The images folder (image/catalog) is embedded in the code. You can always edit the code, but you will have to rewrite a lot and this will not do without consequences. I recommend fixing the problem on the side of the application that putting the images.

My FREE extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by paulfeakins » Fri Jan 20, 2023 8:13 pm

EMGX wrote:
Fri Jan 20, 2023 4:27 am
A third party application is putting images in a separate directory in my site root. I need to assign those images to a product or page within OpenCart.
Then you need to modify this third party app to put them in the right place and automatically assign them to products. If you can't modify it then you could write a script that does this. It's something we could do.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Dutch Pride Code » Sat Jan 21, 2023 1:13 am

Many thanks for your feedback (both of you). I'll try and see what can be changed about the application, if anything.

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by SohBH » Sat Jan 21, 2023 1:53 am

admin\controller\common\filemanager.php
find DIR_IMAGE . 'catalog
change to your third party application image path
Use same path for all your images

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by Dutch Pride Code » Sat Jan 21, 2023 5:27 pm

SohBH wrote:
Sat Jan 21, 2023 1:53 am
admin\controller\common\filemanager.php
find DIR_IMAGE . 'catalog
change to your third party application image path
Use same path for all your images
That's so simple! Seems like a great solution. Does this affect anything else that it shouldn't?
I can imagine admin users would have full root access (when changed to a main directory) when editing products, right?

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by SohBH » Sun Jan 22, 2023 5:06 pm

You can change to DIR_IMAGE to access whole image directory.

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia
Who is online

Users browsing this forum: Ahmed-E-Shop, Google [Bot] and 61 guests