Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2005
    Location
    Rochester, New York
    Posts
    165
    Plugin Contributions
    0

    Default Redirect and Streaming downloads

    Ver 1.54 running on a Lunix Apache system. Fresh install of cart recently:
    CGI Active
    Platform Type Debian
    MySQL Version 5.5.44
    Perl Version 5.8.8
    PHP Version 5.6
    Sendmail Path /usr/sbin/sendmail
    Perl Path /usr/bin/perl
    PHP Path /usr/local/bin/php

    After putting in all my items, using the attribute names and options seting my files in the downloads folder, making sure the permissions on the pub folder is 777, when I use redirect download I get a 403 forbidden error when you go to download the item from customers "My Account". If I change to Streaming download, you can get the downloads. Thats fine, however some of the downloads are bigger than the required size for streaming and I would like to use redirect. I used it on a catalog with 1.3.6h and it worked fine then Is there something I am missing to be able to use redirect??

  2. #2
    Join Date
    Jul 2012
    Posts
    16,719
    Plugin Contributions
    17

    Default Re: Redirect and Streaming downloads

    I've found that sometimes server doesn't like that the temporary directory is created with 777 permissions and that instead should be 755... Try changing 0777 to 0755 in includes/modules/pages/download/header_php.php

    Also, what type of file is being downloaded? (Extension and captalization may matter. )
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Nov 2005
    Location
    Rochester, New York
    Posts
    165
    Plugin Contributions
    0

    Default Re: Redirect and Streaming downloads

    Quote Originally Posted by mc12345678 View Post
    I've found that sometimes server doesn't like that the temporary directory is created with 777 permissions and that instead should be 755... Try changing 0777 to 0755 in includes/modules/pages/download/header_php.php

    Also, what type of file is being downloaded? (Extension and captalization may matter. )
    That file was already 755 permission. I am using .zip .zip1 ect... to .zip 15 .pdf and .mp4 Here is a copy of htaccess:
    # deny *everything*
    <FilesMatch ".*">
    Order Allow,Deny
    Deny from all
    </FilesMatch>

    # but now allow just *certain* necessary files:
    <FilesMatch "(?i).*\.(zip|zip1|zip2|zip3|zip4|zip5|zip6|zip7|zip8|zip9|zip10|zip11|zip12|gzi p|pdf|mp3|swf|wma|wmv|wav|epub|ogg|webm|m4v|m4a|rm|doc|rtf)$">
    Order Allow,Deny
    Allow from all
    </FilesMatch>

    <IfModule mod_headers.c>
    <FilesMatch "(?i).*\.(zip|zip1|zip2|z ip3|zip4|zip5|zip6|zip7|zip8|zip9|zip10|zip11|zip12|gzip|pdf|mp3|swf|wma|wmv|wav |epub|ogg|m4v|m4a|rm|doc|rtf)$">
    # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
    # ALERT: ForceType requires Apache2 or later. If using older version of Apache, it will need mod_mime installed. Or just comment out the ForceType line below
    # (to disable, just comment the next 2 lines by adding a '#' at the beginning of each):
    ForceType application/octet-stream
    Header set Content-Disposition attachment
    </FilesMatch>
    </IfModule>

    IndexIgnore */*

  4. #4
    Join Date
    Jul 2012
    Posts
    16,719
    Plugin Contributions
    17

    Default Re: Redirect and Streaming downloads

    Not referring to the file itself (which should be 644) but inside of the file... If inside already is 755, then either the upgrade wasn't done correctly or it was modified after the upgrade... Default ZC establishes the temporary directory as 777.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. downloads: redirect or streaming?
    By jgold723 in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 29 Nov 2011, 08:07 PM
  2. Download by redirect and number of downloads allowed problems
    By danaclaire in forum General Questions
    Replies: 12
    Last Post: 14 Apr 2011, 09:14 AM
  3. downloads now start streaming vs. downloading
    By karms in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 12 Jun 2010, 04:15 PM
  4. Selling Virtual Downloads for a streaming product
    By bilbothecat in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 20 Nov 2008, 10:38 AM
  5. Redirect vs Streaming
    By kirkhayes in forum Basic Configuration
    Replies: 5
    Last Post: 6 Nov 2008, 07:22 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR