Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Moving the Download Folder

    I have read the article about moving the download folder to protect your shop & folders. Is it as simple as renaming the two config files?

    I would like to store the download files outside of the shop
    Learning Fast.
    Eden Craft Supplies

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Moving the Download Folder

    Is it as simple as renaming the two config files?
    Not renaming the files but the entry in them for
    Code:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Moving the Download Folder

    Quote Originally Posted by kobra View Post
    Not renaming the files but the entry in them for
    Code:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    Sorry, that is what I meant to say.

    So, if I wanted to move the download outside of the site, for example, if using a FTP and you were to drill down to the download site was:
    build_shops -> mysites -> zencart_shop1
    as long as the config files were re-written you could have
    build_shops -> feed -> download_for_zencart_shop1
    Then would you write in the config files
    build_shops/feed/download_for_zencart_shop1
    or
    feed/download_for_zencart_shop1
    Learning Fast.
    Eden Craft Supplies

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Moving the Download Folder

    I think that a trailing slash is in order
    Code:
    build_shops/feed/download_for_zencart_shop1/
    As long as you have created a folder for "feed" and under that one for "download_for_zencart_shop1"
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,516
    Plugin Contributions
    127

    Default Re: Moving the Download Folder

    Wait a minute here - the real point is to have it *outside* the public html folder. So if your old path was

    /home/username/public_html/build_shops/mysites/zencart_shop1/download/

    the new path should be

    /home/username/download

    or perhaps

    /home/username/zencart_shop1_download
    Last edited by swguy; 27 Oct 2015 at 02:13 AM. Reason: Fixed per Kobra suggestion
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Moving the Download Folder

    Quote Originally Posted by swguy
    Wait a minute here - the real point is to have it *outside* the public html folder
    Not according to this FAQ

    https://www.zen-cart.com/content.php...etter-security
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,911
    Plugin Contributions
    13

    Default Re: Moving the Download Folder

    Quote Originally Posted by kobra View Post
    i'm confused... that FAQ provides information on doing exactly that... locating the download folder outside of the webroot...

    other than the addition of adding "Download by Streaming" or "Download by Redirect"; how is that NOT according to the FAQ?
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Moving the Download Folder

    Quote Originally Posted by carlwhat
    how is that NOT according to the FAQ?
    Quote Originally Posted by swguy
    the new path should be

    /download

    or perhaps

    /zencart_shop1_download
    From the FAQ
    Code:
    define('DIR_FS_DOWNLOAD', '/home/my_user_name/download/');
    Notice the FULL path in the FAQ vs a relative path suggested by swguy
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,516
    Plugin Contributions
    127

    Default Re: Moving the Download Folder

    Kobra is 100% correct - I updated my post to show the full path. Thanks for catching that.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #10
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Moving the Download Folder

    Quote Originally Posted by swguy View Post
    Kobra is 100% correct - I updated my post to show the full path. Thanks for catching that.
    Post? Where can I find that? please
    Learning Fast.
    Eden Craft Supplies

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Moving the templates folder
    By infocom in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Sep 2011, 09:34 AM
  2. Moving the cache folder.
    By StevenB in forum General Questions
    Replies: 8
    Last Post: 14 Jul 2007, 01:42 AM
  3. Organizing the Download Folder
    By prphotolab in forum General Questions
    Replies: 2
    Last Post: 28 Dec 2006, 03:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg