Results 1 to 10 of 120

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: Download Fetch [support thread]

    do me a favor a so kind and check my page in the download area and tell me what you think thank you.
    You use fetch in a round about way.
    What normally would be done is to create a ez-page and place all your content as you have now in the ez-page.

    Then just use fetch link (in fetch admin file section) to display the request form for the file. This way you will not get the red error message when landing on the download page.

    But otherwise it works:)

    Skip
    • 446F63746F722057686F •

  2. #2
    Join Date
    May 2007
    Location
    Montebello, CA
    Posts
    40
    Plugin Contributions
    0

    Default Re: Download Fetch [support thread]

    Ok i change it already, is much better without the red image in the botton, i use the fetch page becouse i notice 2 page were created in the define pages one fetch and the other download fetch, i notice when i apply the link for the fetch it pull the download fetch page. So what will be the used of the fetch page in the define pages for.



    Thank you

    Quote Originally Posted by skipwater View Post
    You use fetch in a round about way.
    What normally would be done is to create a ez-page and place all your content as you have now in the ez-page.

    Then just use fetch link (in fetch admin file section) to display the request form for the file. This way you will not get the red error message when landing on the download page.

    But otherwise it works:)

    Skip
    https://www.tni-wireless.com

    Zen Cart V1.5.4 with Tableau Responsive Theme.

  3. #3
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: Download Fetch [support thread]

    Yes that is much better
    • 446F63746F722057686F •

  4. #4
    Join Date
    Oct 2005
    Posts
    42
    Plugin Contributions
    0

    Default Re: Download Fetch [support thread]

    H SkipWater, I have two questions if I may :)

    I am trying to get my head around how to use this mod which would be fantastic for my site.

    Q.1 A customer emails me and requests a product, I email them a link to the download request form, they then fill in the download request form and are then sent an email with the download link - I hope I got that right...hehehe.


    Q.2 Just running through a test, everything works up to the point of actually downloading the file. I am receiving an IE error when I click on the download link - error:unable to download from this site - cannot find index.php.

    But no download issues when using Safari, file downloads and extracts just fine.

    Would you be aware of a work around for IE or something I need to change in my IE settings.

    Any help would be appreciated, thanks!

  5. #5
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: Download Fetch [support thread]

    Q.1 A customer emails me and requests a product, I email them a link to the download request form, they then fill in the download request form and are then sent an email with the download link - I hope I got that right...hehehe.
    That will work. You are just adding a step with the customer asking for the download link.

    Q.2 Just running through a test, everything works up to the point of actually downloading the file. I am receiving an IE error when I click on the download link - error:unable to download from this site - cannot find index.php.

    But no download issues when using Safari, file downloads and extracts just fine.

    Would you be aware of a work around for IE or something I need to change in my IE settings.
    What are the file extensions of the files that are being downloaded?
    Based on the file extension is how fetch handles the header for the download. And IE handles the header info differently then the rest of the browser world.

    Skip
    • 446F63746F722057686F •

  6. #6
    Join Date
    Oct 2005
    Posts
    42
    Plugin Contributions
    0

    Default Re: Download Fetch [support thread]

    Quote Originally Posted by skipwater View Post
    That will work. You are just adding a step with the customer asking for the download link.
    Thanks for the fast response Skip much appreciated :). OK confession time, after reading the instructions for the 20th time I finally got how the mod is supposed to work from start to finish :embarrassed: One should get more sleep before attempting the simplist tasks!

    Quote Originally Posted by skipwater View Post
    What are the file extensions of the files that are being downloaded?
    Based on the file extension is how fetch handles the header for the download. And IE handles the header info differently then the rest of the browser world.

    Skip
    Aaaah MS where would we be without your challenges...lol. All files are winzip files so switching to winrar is not an option for me unfortunately. I have done a quick google on this error but I don't understand most of what I am reading. Any suggestions would be helpful :)

  7. #7
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: Download Fetch [support thread]

    This error seems to come up more then expected. I will try and explain a fix workaround.

    These are the basic content type header setting for downloading files.
    application/x-octet-stream
    application/force-download
    application/octet-stream
    application/download

    With fetch we create a content type header that matches the file type ie.

    test_zip_file.zip would match -> $content_type="application/zip"

    OK you are getting a bad zip file when downloaded.

    To fix this you can change the content type that is assigned to the file extension ie.
    Code:
    case "zip": $content_type="application/zip"; break;
    to
    Code:
    case "zip": $content_type="application/x-octet-stream"; break;
    Now download the zip file again and see if that content type change fixed the issue. If not change the content type till it works.

    Here is the fetch file that needs to be edited /includes/classes/fetch_download.php at line 52 you will find this switch statement.

    Code:
            switch( $file_extension ) {  // the file type
    		// Application files
                    case "pdf": $content_type="application/pdf"; break;
          		case "exe": $content_type="application/octet-stream"; break;
          		case "zip": $content_type="application/zip"; break;
          		case "doc": $content_type="application/msword"; break;
          		case "xls": $content_type="application/vnd.ms-excel"; break;
          		case "ppt": $content_type="application/vnd.ms-powerpoint"; break;
          		// Image files
          		case "gif": $content_type="image/gif"; break;
          		case "png": $content_type="image/png"; break;
          		case "jpeg":
          		case "jpg": $content_type="image/jpg"; break;
          		// Audio files
                    case "mp3": $content_type="audio/mpeg"; break;
                    case "wma": $content_type="audio/x-ms-wma";break;
          		case "wav": $content_type="audio/x-wav"; break;
          		// Video files
          		case "mpeg":
          		case "mpe":
          		case "mpg": $content_type="video/mpeg"; break;
          		case "avi": $content_type="video/x-msvideo"; break;
          		case "wmv": $content_type="video/x-ms-wmv";break;
          		case "mov": $content_type="video/quicktime"; break;
          		//The following are for extensions that shouldn't be downloaded (sensitive stuff, like php files)
          		case "php":
          		case "htm":
          		case "html":
          		case "cgi": die("<h1>ERROR: Disallowed use for ". $file_extension ." files!</h1>"); break;
           
                default: $content_type="application/force-download";
            }
    Hope that helped.
    Skip
    • 446F63746F722057686F •

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. Download File Manager Support Thread
    By balihr in forum All Other Contributions/Addons
    Replies: 24
    Last Post: 17 Aug 2017, 10:32 PM
  3. goMobile Support Thread
    By steveyork136 in forum Addon Templates
    Replies: 29
    Last Post: 26 Aug 2015, 11:56 AM
  4. SnapShot [support thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 32
    Last Post: 26 Oct 2012, 08:38 PM
  5. Download fetch changes the file name
    By davidwenkuisz in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Mar 2010, 01:20 AM

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