Re: [ReturnRaw] and PDFs

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62811
interpreted = N
texte = Clint There were a couple of bugs in [ReturnRaw], on of them was the engine, the other was in the docs. Check the archives to see if you have missed anything :) Stuart Tremain idfk web developments, sydney, australia On 19 Aug 2005, at 6:02 AM, Clint Davis wrote: > WebDNA 6 on MacOS X > > I have a site using [ReturnRaw] to serve protected PDF files after > someone > has registered to view them. In IE6/Win, the dialog box shows the > correct > filename and presents 3 options once the registration is complete: > Open, > Save, Cancel > > If 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 my > choice, 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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- 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:

    
  1. Re: [ReturnRaw] and PDFs ( Stuart Tremain 2005)
  2. Re: [ReturnRaw] and PDFs ( Clint Davis 2005)
  3. Re: [ReturnRaw] and PDFs ( Clint Davis 2005)
  4. Re: [ReturnRaw] and PDFs ( Stuart Tremain 2005)
  5. [ReturnRaw] and PDFs ( Clint Davis 2005)
Clint There were a couple of bugs in [returnraw], on of them was the engine, the other was in the docs. Check the archives to see if you have missed anything :) Stuart Tremain idfk web developments, sydney, australia On 19 Aug 2005, at 6:02 AM, Clint Davis wrote: > WebDNA 6 on MacOS X > > I have a site using [returnraw] to serve protected PDF files after > someone > has registered to view them. In IE6/Win, the dialog box shows the > correct > filename and presents 3 options once the registration is complete: > Open, > Save, Cancel > > If 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 my > choice, 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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- 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/ Stuart Tremain

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] Installed but can't configure (2016) PCS Frames (1997) Problems getting parameters passed into email. (1997) Multiple catalog databases and showcart (1997) [WebDNA] OT - does anyone know how to get Fetch/BBedit to leave (2009) [SubTotal] ??? (1998) Location of Browser Info.txt file (1997) WebCat/CyberStudio Compatibility (1998) Use WebCat to search files in a folder like a search engine? (2001) Where is f2? (1997) Purchase command error problem (1997) Problem displaying search result (1997) Help! WebCat install problems... (2000) International Orders (1998) I'm new be kind (1997) dos performance (1998) Enhancement Request for WebCatalog-NT (1996) REPOST: [numfound] within summ=t (2000) RE: Sorting error (1997) WebCat2b15MacPlugin - [protect] (1997)