Re: [WebDNA] [OT] File structure for purchased downloads
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104807
interpreted = N
texte = That's basically what I suggested earlier about=20using copyfile to get the file to pickup=20directory and name it same as the cart. Even if=20you aren't using the cart system, [cart] will=20generate a unique number. This is real easy to do.[copyfile from=3D(originalfile)&to=3Dwillcall/[cart].pdf] (if it's a pdf)If you'd rather keep the original filenames, use=20createfolder, name it [cart] and copy the files=20there.[createfolder willcall/[cart]][copyfile from=3D(originalfilename)&to=3Dwillcall/[cart]/(originalfilename)]Then just generate the path in the thank you email.I'm not sure I'd want to keep the customer's=20purchased files on the server forever though,=20especially if these files have any mass to them.TerryReverse engineer the Sitebuilder/webmerchant stuff for electronic downloads.[text]WebDelFolder=3Dwebdelivery/[/text][text]AttachFile=3Dwebdelivered_file.pdf[/text][text]StockFolder=3Dstockroom/[/text][text]UniquePrefix=3D[Random][Random][Random][search=20db=3D../data/letters.db&neLetterdatarq=3Dfind_all&raLettersort=3D1&max=3D4][=founditems][letter][/founditems][/search]_[/text][!]Copy the file from the stockroom folder to the webdelivery folder[/!][!]This should create a unique name[/!][copyfile [!][/!]from=3D../[StockFolder][AttachFile][!][/!]&to=3D../[WebDelFolder][uniqueprefix][AttachFile][!][/!]]
http://www.=xxxxxxx.com/[WebDelFolder][uniquePrefix][AttachFile]RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 19/02/2010, at 9:06 AM, Matthew Bohne wrote:I perused the archives and couldn't find anything=20of substance. =A0Google was of little help because=20everyone wants to sell me something, and Bing...=20Well, let's just say the "decision engine"=20doesn't have much to say about web server file=20structure for downloaded software. =A0So, I will=20ask here... =A0It's open to any language, platform,=20etc. =A0I can translate from VB or PHP just fine.Here is the hypothetical situation...A user purchases the item from the store. =A0It is=20logged that they purchased it, and they have the=20option of downloading it as many times as they=20want from their account. =A0Obviously, I don't want=20to give the users a direct link to the file so=20they can't "guess" the other files and download=20them without purchase. =A0I would think that I=20could have a download page that has access to the=20file directory, but the public can not.What is the best way to offer the file to download?Matthew Bohne---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.u=s>archives:=20http://mail.webdna.us/list/talk@w=ebdna.usold archives:=20http://dev.webdna.us/TalkListArchive/Bug Reporting:=20http://foru=m.webdna.us/eucabb.html?page=3Dtopics&category=3D288-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://TightJacket.com -- stylish protection for your laptop--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.
Associated Messages, from the most recent to the oldest:
That's basically what I suggested earlier about=20using copyfile to get the file to pickup=20directory and name it same as the cart. Even if=20you aren't using the cart system, [cart] will=20generate a unique number. This is real easy to do.[copyfile from=3D(originalfile)&to=3Dwillcall/[cart].pdf] (if it's a pdf)If you'd rather keep the original filenames, use=20createfolder, name it [cart] and copy the files=20there.[createfolder willcall/[cart]][copyfile from=3D(originalfilename)&to=3Dwillcall/[cart]/(originalfilename)]Then just generate the path in the thank you email.I'm not sure I'd want to keep the customer's=20purchased files on the server forever though,=20especially if these files have any mass to them.TerryReverse engineer the Sitebuilder/webmerchant stuff for electronic downloads.[text]WebDelFolder=3Dwebdelivery/[/text][text]AttachFile=3Dwebdelivered_file.pdf[/text][text]StockFolder=3Dstockroom/[/text][text]UniquePrefix=3D[random][random][random][search=20db=3D../data/letters.db&neLetterdatarq=3Dfind_all&raLettersort=3D1&max=3D4][=founditems][letter][/founditems][/search]_[/text][!]Copy the file from the stockroom folder to the webdelivery folder[/!][!]This should create a unique name[/!][copyfile [!][/!]from=3D../[StockFolder][AttachFile][!][/!]&to=3D../[WebDelFolder][uniqueprefix][AttachFile][!][/!]]http://www.=xxxxxxx.com/[WebDelFolder][uniquePrefix][AttachFile]RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 19/02/2010, at 9:06 AM, Matthew Bohne wrote:I perused the archives and couldn't find anything=20of substance. =A0Google was of little help because=20everyone wants to sell me something, and Bing...=20Well, let's just say the "decision engine"=20doesn't have much to say about web server file=20structure for downloaded software. =A0So, I will=20ask here... =A0It's open to any language, platform,=20etc. =A0I can translate from VB or PHP just fine.Here is the hypothetical situation...A user purchases the item from the store. =A0It is=20logged that they purchased it, and they have the=20option of downloading it as many times as they=20want from their account. =A0Obviously, I don't want=20to give the users a direct link to the file so=20they can't "guess" the other files and download=20them without purchase. =A0I would think that I=20could have a download page that has access to the=20file directory, but the public can not.What is the best way to offer the file to download?Matthew Bohne---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.u=s>archives:=20http://mail.webdna.us/list/talk@w=ebdna.usold archives:=20http://dev.webdna.us/TalkListArchive/Bug Reporting:=20http://foru=m.webdna.us/eucabb.html?page=3Dtopics&category=3D288-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://TightJacket.com -- stylish protection for your laptop--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.
Terry Wilson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebDNA for Dummies (2004)
make updates in a temporary database (2004)
WebCat on Apache (2002)
ListFiles Bug (1998)
ooops...WebCatalog [FoundItems] Problem - LONG - (1997)
Too many wrong answers! (1998)
Problem displaying search result (1997)
WebStar and CopyFile (2000)
What am I missing (1997)
FISKARS (2003)
WebCatb15 Mac CGI -- [purchase] (1997)
Suffix Mapping (1997)
WebCat2 - [format thousands] (1997)
Item counting? (1998)
RE:It just Does't add up!!! (1997)
Append again (1999)
test (2004)
View order not right (1997)
Summing fields (1997)
docs for WebCatalog2 (1997)