0

I have a plugin that uses server paths to define the location of an Image Folder, however, I have decided to have a CDM or a new separate server to host my images.

Currently all the paths look like this:

$upload_dir = '/home/www/original_domain.com/media/downloads/encrypted';

I have tried to search the web for answers but I do not know that search queries to type in to get the answers.

The new server has a different domain and I have tried doing this:

$upload_dir = 'http://new_domain.com/media/downloads/encrypted';

But that does not work, is there a way to define the folder location? I believe this script can only read server paths.

  • 1
    You will need to provide more detail. This appears to be related to a plugin you haven't named, and possibly to a "script" of which we know nothing. – s_ha_dum Jan 21 '14 at 4:50
  • The plugin is a gallery type plugin, just like NextGen Gallery. But I was wondering if there was a way to write the server path pointing to another server. – Lilap Jan 21 '14 at 5:05
  • Do you realize how many different ways there are to write a "gallery type plugin"? The answer is hidden in that mystery code. If you cannot provide more information I don't see how this is answerable. – s_ha_dum Jan 21 '14 at 5:08
  • 1
    Are you looking to define a different uploads folder for your plug in on a different domain. Also we will need to see your relevant code. – user10106 Jan 21 '14 at 6:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.