Zen Cart Logo
Forums / General Questions / Download Folder on alternate server?

Download Folder on alternate server?

Locked

Views: 706

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
5 Jun 2010, 1:27 AM
#1
bowserhound avatar

bowserhound

New Zenner

Join Date:
Nov 2009
Posts:
25
Plugin Contributions:
0

Download Folder on alternate server?

I know you can move the download folder outside of the webroot:
https://www.zen-cart.com/tutorials/index.php?article=280

But is it possible to have the download folder located on an entire different domain/server?

For example:
I would like to move mine from https://www.abc.com/zencart/downloads to https://www.xyz.com/downloadfolderx.

Any reason this would not work?

Thanks in advance

5 Jun 2010, 6:58 PM
#2
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Download Folder on alternate server?

As per the article except:

change

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

to

define('DIR_FS_DOWNLOAD', 'www.xyz.com/downloadfolderx/');

7 Jun 2010, 2:24 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Download Folder on alternate server?

Actually, Louis is wrong.
It's NOT possible to serve downloads from an external location if you want Zen Cart to handle the security to prevent theft.