Zen Cart Logo
Forums / All Other Contributions/Addons / Download Fetch [support thread]

Download Fetch [support thread]

Views: 13,439

Results 61 to 80 of 120
19 Aug 2010, 9:43 PM
#61
wastaboo avatar

wastaboo

New Zenner

Join Date:
May 2007
Location:
Montebello, CA
Posts:
40
Plugin Contributions:
0

Download Fetch [support thread]

ok i guess i found one erro in line 49 in the, it looks that there were 2 under line _ toguether i remove one, :clap:

but now i get a good page :clap: but with the message

nothing to download

wastaboo:

i forgot to tell you now the page is deferent

The website cannot display the page

HTTP 500

19 Aug 2010, 11:01 PM
#62
wastaboo avatar

wastaboo

New Zenner

Join Date:
May 2007
Location:
Montebello, CA
Posts:
40
Plugin Contributions:
0

Re: Download Fetch [support thread]

i also check the, Download Fetch User Admin page and everytime that i reload the link for the download with the message Nothing to download! is counting like is downloading the file but no file were download.

:lamo:

wastaboo:

ok i guess i found one erro in line 49 in the, it looks that there were 2 under line _ toguether i remove one, :clap:

but now i get a good page :clap: but with the message

nothing to download

20 Aug 2010, 12:44 AM
#63
wastaboo avatar

wastaboo

New Zenner

Join Date:
May 2007
Location:
Montebello, CA
Posts:
40
Plugin Contributions:
0

Re: Download Fetch [support thread]

Ok i keeping you update i delete the files from this page and i download the one tha is in the free download are of zen cart, is working when i click on the link send me to a good page and the file gets to download in my computer, but when i open the zip file it tells me this message.

Cannot open file: it does not appear to be a valid archive. if you downloaded this file, try download the file again.

im using winzip 8.

is it other zip program that i have to use to be able to work the good file. thank you :flex:

20 Aug 2010, 12:56 AM
#64
wastaboo avatar

wastaboo

New Zenner

Join Date:
May 2007
Location:
Montebello, CA
Posts:
40
Plugin Contributions:
0

Re: Download Fetch [support thread]

OK Nice it works with win rar i got the file and good to open :clap::clap::clap: Thank you for this add on i like it :hug:

20 Aug 2010, 1:00 AM
#65
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Download Fetch [support thread]

wastaboo:

OK Nice it works with win rar i got the file and good to open :clap::clap::clap: Thank you for this add on i like it :hug:

I am glad you got it fixed.

This has fixed some systems errors with zip files.

http://www.zen-cart.com/forum/showpost.php?p=857083&postcount=29

Skip

20 Aug 2010, 7:02 PM
#66
wastaboo avatar

wastaboo

New Zenner

Join Date:
May 2007
Location:
Montebello, CA
Posts:
40
Plugin Contributions:
0

Re: Download Fetch [support thread]

I made the change and it didn't help, it looks like IE corrups my zip files when i upload them to the server, so i just leave it like that and im using winrar for my files, do me a favor a so kind and check my page in the download area and tell me what you think thank you. :hug:

skipwater:

I am glad you got it fixed.

This has fixed some systems errors with zip files.

http://www.zen-cart.com/forum/showpost.php?p=857083&postcount=29

Skip

20 Aug 2010, 7:31 PM
#67
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

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

20 Aug 2010, 8:17 PM
#68
wastaboo avatar

wastaboo

New Zenner

Join Date:
May 2007
Location:
Montebello, CA
Posts:
40
Plugin Contributions:
0

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.

:clap:
Thank you

skipwater:

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

20 Aug 2010, 9:09 PM
#69
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Download Fetch [support thread]

Yes that is much better:smile:

8 Sep 2010, 1:16 PM
#70
sammyd avatar

sammyd

New Zenner

Join Date:
Oct 2005
Posts:
40
Plugin Contributions:
0

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!

8 Sep 2010, 3:29 PM
#71
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

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

9 Sep 2010, 11:48 AM
#72
sammyd avatar

sammyd

New Zenner

Join Date:
Oct 2005
Posts:
40
Plugin Contributions:
0

Re: Download Fetch [support thread]

skipwater:

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!

skipwater:

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 :)

9 Sep 2010, 2:09 PM
#73
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

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.

case "zip": $content_type="application/zip"; break;

to

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.

        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

10 Sep 2010, 11:10 AM
#74
sammyd avatar

sammyd

New Zenner

Join Date:
Oct 2005
Posts:
40
Plugin Contributions:
0

Re: Download Fetch [support thread]

You’re a legend Skip, thank you so much for the very clear instructions ^_^

application/x-octet-stream – worked like a treat. Tested IE and Safari both downloads and extraction - zero issues.

Excellent Mod so very happy I found this one!

12 Sep 2010, 12:27 AM
#75
sammyd avatar

sammyd

New Zenner

Join Date:
Oct 2005
Posts:
40
Plugin Contributions:
0

Re: Download Fetch [support thread]

Aawww seems like I spoke too soon :(

My inital winzip file downloaded and extracted just fine 1.05mb using IE & Safari.

But after a bit of playing I have found that any winzip file larger than 4.5 mb doesn't download correctly in either browser, being 1kb short resulting in a corrupt file.

I tried each one of the content type header settings too.

Would you have any other suggestions Skip? apart from converting to rar files that is ...hehehehe

12 Sep 2010, 7:48 PM
#76
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Download Fetch [support thread]

SammyD:

Would you have any other suggestions Skip? apart from converting to rar files that is ...hehehehe

It might come down to may math.

Again open this fetch file that needs to be edited /includes/classes/fetch_download.php around line 140 you will find this.

            // ... else, download the whole file
			} else {
                $byte_from = 0;
                $byte_to = $this->properties["size"] - 1;

Change by removing the - 1 so it looks like this.

            // ... else, download the whole file
			} else {
                $byte_from = 0;
                $byte_to = $this->properties["size"];

That should have fixed it.

Skip

13 Sep 2010, 11:54 AM
#77
sammyd avatar

sammyd

New Zenner

Join Date:
Oct 2005
Posts:
40
Plugin Contributions:
0

Re: Download Fetch [support thread]

Thanks Skip for the reply, unfortunately it didn't work.

I did play with the code a little bit to see if I could get it to work, but no go.

Such a shame as I think this is a great mod which I could use quite a bit but most of my files are 10mb or more. Never mind, at least I can still use it for files 4.5mb and under.

Again thanks for the help ^_^

4 Oct 2010, 11:35 AM
#78
filmfr3ak avatar

filmfr3ak

New Zenner

Join Date:
Jun 2006
Posts:
35
Plugin Contributions:
0

Re: Download Fetch [support thread]

Has the corrupted file downloads issue been resolved? Like several of the others, all seems to work fine, with the exception that the files downloaded are corrupted. They are fine on the server itself.

6 Oct 2010, 2:23 AM
#79
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Download Fetch [support thread]

filmfr3ak:

Has the corrupted file downloads issue been resolved? Like several of the others, all seems to work fine, with the exception that the files downloaded are corrupted. They are fine on the server itself.

Sorry for the delay in my response I was working on that issue before your post but it got set aside till your post reminded me.

I have added to the code so there should be no issues with the size of the files or corruption.

I have tested it on XP, Vista, IE 5,6,7,8 FireFox and have gotten no errors.

I have submitted version 1.3 to the Free Software Add Ons area it should be updated in a couple of days. Till then here is a link to Version 1.3

To install read the readme file in the zip.

If you where running version 1.2 you do not need to run the sql install.

Skip

6 Oct 2010, 3:40 AM
#80
filmfr3ak avatar

filmfr3ak

New Zenner

Join Date:
Jun 2006
Posts:
35
Plugin Contributions:
0

Re: Download Fetch [support thread]

skipwater:

Sorry for the delay in my response I was working on that issue before your post but it got set aside till your post reminded me.

I have added to the code so there should be no issues with the size of the files or corruption.

I have tested it on XP, Vista, IE 5,6,7,8 FireFox and have gotten no errors.

I have submitted version 1.3 to the Free Software Add Ons area it should be updated in a couple of days. Till then here is a link to Version 1.3

To install read the readme file in the zip.

If you where running version 1.2 you do not need to run the sql install.

Skip

Hi Skip,
Just installed the new package. Now when someone clicks the link in the email it opens a white webpage and nothing happens. :blink:
Any ideas?

thanks.