Re: [ReturnRaw] and PDFs

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62815
interpreted = N
texte = I found this response from Scott in the archives from 8/27/03: "Some browsers are more particular about how attachments are described in the MIME headers. What happens when you test using different browsers? Netscape or IE on Windows? Older IE versions (4.x) did have a bug with regards to interpreting those MIME headers." Stuart: you replied the next day with this: "Your white pages site works for me on Mac OSX 10.2 IE 5.2, my coding=20 does not. Same problems on w2k ie 6." What was the final outcome? How can I get Adobe Reader to work with the Open option vs. the Save option? On 8/18/05 9:32 PM, "Stuart Tremain" wrote: > 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 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)
I found this response from Scott in the archives from 8/27/03: "Some browsers are more particular about how attachments are described in the MIME headers. What happens when you test using different browsers? Netscape or IE on Windows? Older IE versions (4.x) did have a bug with regards to interpreting those MIME headers." Stuart: you replied the next day with this: "Your white pages site works for me on Mac OSX 10.2 IE 5.2, my coding=20 does not. Same problems on w2k ie 6." What was the final outcome? How can I get Adobe Reader to work with the Open option vs. the Save option? On 8/18/05 9:32 PM, "Stuart Tremain" wrote: > 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 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:

WebCat cannot handle compatible search parameters? (1997) [ot] g5 xserve drives (2004) service stop and restart (1997) Credit Card Number checking (1997) Help! WebCat2 bug (1997) TeaRoom Order fields email account remain empty even though thewy are filled. (1997) Ampersand (1997) Cold Fusion Buster (1997) Help! WebCat2 bug (1997) [SMSI]Price and Formula.db (2002) 2.1 bugs left over from beta cycle (1998) shownext example (2001) Access and WebDNA (2002) Cookies (1999) Can't get appendfile to work (1997) Limit to variables passed on to next tpl? (1998) this year (2000) autosensing lanague selection (1997) Protect Tag and Groups (1998) Proposed FormVariables hierarchy (2000)