[ReturnRaw] and PDFs
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62809
interpreted = N
texte = WebDNA 6 on MacOS XI have a site using [ReturnRaw] to serve protected PDF files after someonehas registered to view them. In IE6/Win, the dialog box shows the correctfilename and presents 3 options once the registration is complete: Open,Save, CancelIf I click the Open button, Adobe Reader launches with an error:There was an error opening the document. The file cannot be found.If I click the Save button instead, the file is saved to the location of mychoice, and I have to double-click to open it in Adobe Reader.Has anyone else dealt with PDFs and [ReturnRaw]?Here's my code where the [f] variable is the PDF file:[text]line_ending=%0D%0A[/text][ReturnRaw binarybody=pdf/[f].pdf][!][/!]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: application/pdf[unurl][line_ending][/unurl][!][/!]Content-Disposition: attachment;filename="[f].pdf"[unurl][line_ending][line_ending][/unurl][!][/!][/ReturnRaw]-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
WebDNA 6 on MacOS XI have a site using [returnraw] to serve protected PDF files after someonehas registered to view them. In IE6/Win, the dialog box shows the correctfilename and presents 3 options once the registration is complete: Open,Save, CancelIf I click the Open button, Adobe Reader launches with an error:There was an error opening the document. The file cannot be found.If I click the Save button instead, the file is saved to the location of mychoice, and I have to double-click to open it in Adobe Reader.Has anyone else dealt with PDFs and [returnraw]?Here's my code where the [f] variable is the PDF file:[text]line_ending=%0D%0A[/text][ReturnRaw binarybody=pdf/[f].pdf][!][/!]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: application/pdf[unurl][line_ending][/unurl][!][/!]Content-Disposition: attachment;filename="[f].pdf"[unurl][line_ending][line_ending][/unurl][!][/!][/ReturnRaw]-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Clint Davis
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:
Re:2nd WebCatalog2 Feature Request (1996)
[shownext] and sort (1998)
Can this be done? (1997)
Folder Follies (1998)
WebCat2: Items xx to xx shown, etc. (1997)
Botched cart numbers in webmerchant 2.1x email with webcat 3 (1998)
Protecting Files (2005)
pc (1997)
PCS Frames (1997)
[WebDNA] Downloadable docs (2011)
Problem with listfields with WC 4.0.2rc2/Webstar 4.4 (2001)
[math] with first letter in field? (1997)
Uploading under Windows (2001)
[WebDNA] inputed text getting scrambled up in DB (2012)
Banners and sort of random display (1997)
Setting user/password with a form. (2000)
Re1000001: Setting up shop (1997)
Bug or syntax error on my part? (1997)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
Multiple prices (1997)