Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stumped on Download


jamescalvin

Recommended Posts

Posted

Hey Everyone,

 

I have one for you all. My download redirect isn't working properly but that's cool, i'm not worried about that. When the customer makes a purchase from the site, the customer can login to their account and they're able to download the product directly from the login area.

 

My question is this, when the client logs in and clicks on the link (which is the name of the file they are downloading). They see the number of days, they have left to download and the number of downloads remaining. When the customer clicks on the link, it takes them to a "page cannot be found" type of page. No errors though.

Web Development, 365... 366 in a leap year.

Posted
Hey Everyone,

 

I have one for you all.  My download redirect isn't working properly but that's cool, i'm not worried about that.  When the customer makes a purchase from the site, the customer can login to their account and they're able to download the product directly from the login area. 

 

My question is this, when the client logs in and clicks on the link (which is the name of the file they are downloading).  They see the number of days, they have left to download and the number of downloads remaining.  When the customer clicks on the link, it takes them to a "page cannot be found" type of page.  No errors though.

 

I think I may have figured something out, I think the link is directed to mysite.com/catalog/download but that's not where my download files are. My set up is slightly different, I don't have a "catalog" folder.

 

Does anyone know where I can find out where the download path is? I've been looking for it but I can't find anything... Please help

Web Development, 365... 366 in a leap year.

Posted

Your download path is in your configure.php file in catalog/includes:

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

 

keep in mind your download is accessed through redirection from pub to your download folder

Posted

If you take a look at your download.php file you will see where your download folder is designated:

symlink(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'], DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']);

  • 2 weeks later...
Posted

Hi,

 

I've nearly the same problem.

 

If redirect is enabled I get an 403 'Forbidden' - Error. If disabled, the browser try to download the same filename with HTML-extension ("filename.zip" -> "filename.html") and is unreadable, even changin the extension.

 

I checked and rechecked the config.

 

/pub/ dir is chmod 777 (I moved /pub/ and /downloads/ to root of webspace)

/downloads/ tryed 777 and 755

 

I tryed the solutions on Bugs Reports: http://www.oscommerce.com/community/bugs,1...search,download, but doesn't work for me.

I also read most of the forum and tryed given solutions, neither works.

 

Ah, when I browse my server with a FTP client I can see the themp directories and download the files...

 

Any ideas?

 

Thanks,

Akila

Posted

I kept getting the same message so went back to using redirect=False, On the throes of checking the security. Try putting a htaccess file in there that will only allow access from the web site itself.

 

Steve

Posted
I kept getting the same message so went back to using redirect=False, On the throes of checking the security. Try putting a htaccess file in there that will only allow access from the web site itself.

 

Steve

 

Changing my redirect=False made all the difference in the world for me... It works fine now.

Web Development, 365... 366 in a leap year.

Posted
I kept getting the same message so went back to using redirect=False, On the throes of checking the security. Try putting a htaccess file in there that will only allow access from the web site itself.

 

Steve

 

 

Thanks,

 

I tryed this. But I'm still getting the 403 error message.

 

I also themporary delet/comented the htaccess in the pub/ folder, the downloads/ folder and in the root folder.

 

It's realy a strange thing...

 

More ideas??

 

Akila

Posted
Thanks,

 

I tryed this. But I'm still getting the 403 error message.

 

I also themporary delet/comented the htaccess in the pub/ folder, the downloads/ folder  and in the root folder.

 

It's realy a strange thing...

 

More ideas??

 

Akila

PM me your site details and I will have a look at it for you

 

Steve

Posted

have you tried the download controller?

what is the payment method?

what is the order status you have setup for the paymnt?

Posted

have you tried the download controller?

what is the payment method?

what is the order status you have setup for the paymnt?

Posted

Thanks.

 

I tryed with the Download Manager. With the same results.

 

For payment I used the standard PayPal module an the Paypal IPN module.

 

Payment Status: I tryed all ... Same result or link not displayed.

 

I'm not sure but, could it be because of the server?

My hosting company, Acens (Spain) uses Zeus server software instead of Apache.

 

I'm having only problems with this downloads from OSC.

 

Some server details (from Server Info - OSC):

 

Server OS: Linux 2.4.22

Datenbase: MySQL 4.0.21-standard-log

HTTP Server: Zeus/4.1

PHP Version: 4.4.0 (Zend: 1.3.0)

 

Virtual Directory Support: disabled <- ??

 

 

Directory listing was disabled by the main .htaccess file in root. Still enabling it, downloads didn't work. When browsing the /pub/ dir, with dir listing disabled, I couldn't access the download file.

 

Thanks for your response...

 

Akila

 

PS: I had some problems with my ISP >_< , I couldn't access before...

Posted

order status for downloads is updated via the download controller

Posted
order status for downloads is updated via the download controller

 

I know. With "Payment Status" I mean "order status". Sorry.

 

The download links are on the checkout, after payment confirmation, and in the email. They are clickable and the files / redirection exists on the server.

 

Akila

Posted

I'm trying more things:

If I copy the file to download into the /pub/ dir, it works.

Example:

the file I try to download: testfile.rar

it seems the redirect nor the "direct" download works correctly on my server.

I copy the file form /downlads/ to /pub/ the download works.

 

Is there a posibility to copy automatically the file from the /download/ dir into the /pub/ dir???

 

Thanks

 

Akila

Posted

OK, I found my problem, a realy stupid one >_< .

 

I made the tests with Opera.

It's the only browser that doesn't work :blink:

 

I made some more tests and downloads works correctly with "redirect = false" and with most of other browsers.

For tests I used Firefox, Mozilla, Netscape and IE.

 

I'll try later, at my home and at friends home, If it works With Konqueror and Safari.

 

 

But, why Opera reads the file as "text/html" instead of "Application/octet-stream"?

 

Well, for now it works for me. But I don't feel good if I have to advise my visitors to not use Opera...

 

Greets,

 

Akila

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...