Load image from subdomain

Hi All,

I would like to transfer my whole media(pictures) directory to my sub-domain and want to load all product, categories and manufacturer images from that subdomain.

Like image.myserver.com/1/image-name.jpg

Does anyone have idea that to do like this how many changes do i require to do…?
Like Path changes and storing etc…?

Thanks.

There’s a config option in the config.inc.php,

$this->sAltImageDir = "http://sub.domain.com/";

Not quite sure if it fits your need, haven’t used it yet

Storing can be a problem, because the shop cant access the subdomain for saving the files the default way. So you have to sync them.

Hi,

sAltImageDir is intended to see all images uploaded via FTP first so no hassle actually because of permissions :wink:

Regards

Thanks for the reply.

Here, I have tried and sAltImageDir is working fine for loading images from subdomain.

But as mentioned by @ChristophH storing is creating the issue, because using admin we can not upload images on subdomain.

So, is there a way in OXID for this or we need to make script using php for this…?

no implemented way to use sAltImageDir for uploading in admin so far

But you could use a cronjob for mirroring the regular filestructur created by uploading in admin to your sAltImageDir - maybe the easiest way.

so many C# image app canload images , Rasteredge is also working fine for me.