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=20 using copyfile to get the file to pickup=20 directory and name it same as the cart. Even if=20 you aren't using the cart system, [cart] will=20 generate 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=20 createfolder, name it [cart] and copy the files=20 there. [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=20 purchased files on the server forever though,=20 especially if these files have any mass to them. Terry Reverse 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=20 db=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] Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 19/02/2010, at 9:06 AM, Matthew Bohne wrote: I perused the archives and couldn't find anything=20 of substance. =A0Google was of little help because=20 everyone wants to sell me something, and Bing...=20 Well, let's just say the "decision engine"=20 doesn't have much to say about web server file=20 structure for downloaded software. =A0So, I will=20 ask here... =A0It's open to any language, platform,=20 etc. =A0I can translate from VB or PHP just fine. Here is the hypothetical situation... A user purchases the item from the store. =A0It is=20 logged that they purchased it, and they have the=20 option of downloading it as many times as they=20 want from their account. =A0Obviously, I don't want=20 to give the users a direct link to the file so=20 they can't "guess" the other files and download=20 them without purchase. =A0I would think that I=20 could have a download page that has access to the=20 file 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 to the mailing list <talk@webdna.us>. To unsubscribe, E-mail to: <talk-leave@webdna.u= s> archives:=20 http://mail.webdna.us/list/talk@w= ebdna.us old archives:=20 http://dev.webdna.us/TalkListArchive/ Bug Reporting:=20 http://foru= m.webdna.us/eucabb.html?page=3Dtopics&category=3D288 -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://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:

    
  1. Re: [WebDNA] [OT] File structure for purchased downloads (Terry Wilson 2010)
  2. Re: [WebDNA] [OT] File structure for purchased downloads (Stuart Tremain 2010)
  3. Re: [WebDNA] [OT] File structure for purchased downloads (Donovan Brooke 2010)
  4. Re: [WebDNA] [OT] File structure for purchased downloads (Rob 2010)
  5. Re: [WebDNA] [OT] File structure for purchased downloads (Tom Duke 2010)
  6. Re: [WebDNA] [OT] File structure for purchased downloads (Terry Wilson 2010)
  7. Re: [WebDNA] [OT] File structure for purchased downloads (Lawrence 2010)
  8. Re: [WebDNA] [OT] File structure for purchased downloads (Rob 2010)
  9. Re: [WebDNA] [OT] File structure for purchased downloads (Rob 2010)
  10. [WebDNA] [OT] File structure for purchased downloads (Matthew Bohne 2010)
That's basically what I suggested earlier about=20 using copyfile to get the file to pickup=20 directory and name it same as the cart. Even if=20 you aren't using the cart system, [cart] will=20 generate 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=20 createfolder, name it [cart] and copy the files=20 there. [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=20 purchased files on the server forever though,=20 especially if these files have any mass to them. Terry Reverse 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=20 db=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] Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 19/02/2010, at 9:06 AM, Matthew Bohne wrote: I perused the archives and couldn't find anything=20 of substance. =A0Google was of little help because=20 everyone wants to sell me something, and Bing...=20 Well, let's just say the "decision engine"=20 doesn't have much to say about web server file=20 structure for downloaded software. =A0So, I will=20 ask here... =A0It's open to any language, platform,=20 etc. =A0I can translate from VB or PHP just fine. Here is the hypothetical situation... A user purchases the item from the store. =A0It is=20 logged that they purchased it, and they have the=20 option of downloading it as many times as they=20 want from their account. =A0Obviously, I don't want=20 to give the users a direct link to the file so=20 they can't "guess" the other files and download=20 them without purchase. =A0I would think that I=20 could have a download page that has access to the=20 file 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 to the mailing list <talk@webdna.us>. To unsubscribe, E-mail to: <talk-leave@webdna.u= s> archives:=20 http://mail.webdna.us/list/talk@w= ebdna.us old archives:=20 http://dev.webdna.us/TalkListArchive/ Bug Reporting:=20 http://foru= m.webdna.us/eucabb.html?page=3Dtopics&category=3D288 -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://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)