Print Page | Close Window

Problem with downloadable file locations

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=5198
Printed Date: 09-March-2025 at 5:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with downloadable file locations
Posted By: kcramer
Subject: Problem with downloadable file locations
Date Posted: 29-June-2012 at 10:41pm
Hi everyone,
 
We want to use Amazon S3 to store the files for some of the downloadable products we sell through ProductCart, but it seems like ProductCart doesn't play nicely with the links to files stored on Amazon S3.
 
We currently have the files stored on the same server where our site is hosted, so right now the HTTP path to the file looks something like this:
http://www.oursite.com/ProductCart/ourMP3products/product-name.zip" rel="nofollow - http://www.oursite.com/ProductCart/ourMP3products/product-name.zip
 
But, files located on Amazon S3 have paths that look like this instead:
as3tp://oursite.s3.amazonaws.com/ourMP3products/product-name.zip
 
When we try to use the Amazon S3 path to the file, ProductCart won't find the file and simply shows an error message instead. (We've verified the file path a half-dozen times to make sure we typed it into ProductCart correctly, and it works fine when we try to download it through a different cart.)
 
Does anyone know how to fix this? Is there a way to force ProductCart to accept the as3tp path as a valid path?
 
Thanks in advance for any help or suggestions!
 
~ Kristen



Replies:
Posted By: Hamish
Date Posted: 29-June-2012 at 11:04pm
It is almost certainly due to an incompatibility with the security features for downloadable products that are built in to productcart such as temporary and hidden urls. See the wiki for more details. If you place them on s3 or anywhere off your site then they would be outside the control of productcart and AFAIK the link to the downloadable product could be shared with any and everyone!

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: kcramer
Date Posted: 29-June-2012 at 11:14pm
Hi Hamish,
We have a few downloadable product files stored on a different site (completely different domain and server) and have been linking to their HTTP paths through ProductCart for several months without a problem, so I don't think it's necessarily an issue of placing the files off the site. In every test we've done in every browser so far, ProductCart still hides the actual HTTP path to the file on the other site and gives the customer a masked URL the same way it would if the file was located on the same site as ProductCart.
 
I think the problem is twofold: first, ProductCart doesn't recognize a path that starts with "as3tp" instead of "http", and second, there's no place in ProductCart to enter the API/authentication info for our Amazon S3 account (so even if it recognized the as3tp path, it still couldn't access the file).
 
~ Kristen


Posted By: kcramer
Date Posted: 30-June-2012 at 11:46am
I found out we can get https links to our files on Amazon S3, so half the problem is solved. The only problem now is finding a way to get ProductCart to pass the authentication info for our Amazon S3 account so it can get access to the files. I don't even know where to start with something like that.
 
~ Kristen



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net