Re: [WebDNA] [OT] File structure for purchased downloads
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104797
interpreted = N
texte = You can easily use the following code.Client will click on their item and the file will start downloading=20without showing were the file is.Lawrence[text secure=3Df&show=3DF]getfile=3DSensation_Voile_N=B01.pdf[/text] [!]Check if filename was passed in[/!] [text]line_ending=3D%0D%0A[/text][!]Generate the response[/!][ReturnRaw binarybody=3D[getfile]]HTTP/1.0 200=20OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!][/!]Content-Disposition: attachment;=20filename=3D"[getfile]"[unurl][line_ending][line_ending][/unurl][!][/!][/ReturnRaw]Le 18/02/10 23:06, Matthew Bohne a =E9crit :> I perused the archives and couldn't find anything of substance. =20> Google was of little help because everyone wants to sell me something,=20> and Bing... Well, let's just say the "decision engine" doesn't have=20> much to say about web server file structure for downloaded software. =20> So, I will ask here... It's open to any language, platform, etc. I=20> can translate from VB or PHP just fine.>> Here is the hypothetical situation...> A user purchases the item from the store. It is logged that they=20> purchased it, and they have the option of downloading it as many times=20> as they want from their account. Obviously, I don't want to give the=20> users a direct link to the file so they can't "guess" the other files=20> and download them without purchase. I would think that I could have a=20> download page that has access to the file directory, but the public=20> 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
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting:=20> http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288>
Associated Messages, from the most recent to the oldest:
You can easily use the following code.Client will click on their item and the file will start downloading=20without showing were the file is.Lawrence[text secure=3Df&show=3DF]getfile=3DSensation_Voile_N=B01.pdf[/text] [!]Check if filename was passed in[/!] [text]line_ending=3D%0D%0A[/text][!]Generate the response[/!][ReturnRaw binarybody=3D[getfile]]HTTP/1.0 200=20OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!][/!]Content-Disposition: attachment;=20filename=3D"[getfile]"[unurl][line_ending][line_ending][/unurl][!][/!][/ReturnRaw]Le 18/02/10 23:06, Matthew Bohne a =E9crit :> I perused the archives and couldn't find anything of substance. =20> Google was of little help because everyone wants to sell me something,=20> and Bing... Well, let's just say the "decision engine" doesn't have=20> much to say about web server file structure for downloaded software. =20> So, I will ask here... It's open to any language, platform, etc. I=20> can translate from VB or PHP just fine.>> Here is the hypothetical situation...> A user purchases the item from the store. It is logged that they=20> purchased it, and they have the option of downloading it as many times=20> as they want from their account. Obviously, I don't want to give the=20> users a direct link to the file so they can't "guess" the other files=20> and download them without purchase. I would think that I could have a=20> download page that has access to the file directory, but the public=20> 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 .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting:=20> http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288>
Lawrence
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:
Stats (2004)
HEADER AND FOOTER (1997)
SHOWIF/HIDEIF empty fields (2005)
[defined]ish (1997)
SMSI FTP - calander system (2002)
member access (2000)
db protection on NT (1997)
Multiple Domains (2003)
Replace with Producteditor.tpl (2000)
Can you specify encoding=multiline? (2000)
Help name our technology! (1997)
founditem align (1998)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
WebCat cannot handle compatible search parameters? (1997)
I've had it! (1999)
[WebDNA] contents of db files disappearing including triggers.db (2019)
Help! WebCat2 bug (1997)
[Cart] ... (1997)
Re:WebCatalog 3 for Macintosh (1998)
Trouble Searching (1999)