Forums / General Questions / Naming rules for downloadable files?

Naming rules for downloadable files?

Views: 421

Results 1 to 4 of 4
21 Nov 2011, 2:23 PM
#1
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Naming rules for downloadable files?

My client has downloadable pdfs in ZC (1.3.9a). They have developed a naming method that looks something like this: filename.somethingelse.V1.pdf

They've had periodic issues with these files -- downloads often stall or crash (often with I.E.) and lately customers have been getting periodic "Forbidden, you do not have access to this file" errors.

Would their naming system (with all its associated dots) be causing or part of the problem?

John

21 Nov 2011, 7:08 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Naming rules for downloadable files?

Have you tested an alternate naming approach, perhaps using underscores instead of periods?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Nov 2011, 7:46 PM
#3
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Naming rules for downloadable files?

Yes and it didn't seem to make a difference.

A related question -- does the redirect/symlink slow downloads?

I did a test -- downloading a 1.1 MB file via ZC (using redirect) and just a plain PDF download of the same file using a plain URL.

The ZC download took nearly minute to download. The straightforward method took less an a couple of seconds.

So clearly, there is some issue with the redirect/symlink method. What can be done to change this?

John

21 Nov 2011, 7:50 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Naming rules for downloadable files?

If download-by-redirect/symlink is slow, then your server's got a problem, because ZC has nothing to do with it once the symlink is made.

ref: https://www.zen-cart.com/tutorials/index.php?article=292

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.