Re: [ReturnRaw] and PDFs

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62819
interpreted = N
texte = Sorry I don't remember that one. I have done a few versions using [ReturnRaw] and after I got the engine sorted out and the technique worked out all seemed to be OK. I must admit that I have never even thought about forcing IE6 to download rather than open. You could 'Zip' it, then it would have to download. Stuart Tremain idfk web developments, sydney, australia On 20 Aug 2005, at 12:23 AM, Clint Davis wrote: > 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 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)
Sorry I don't remember that one. I have done a few versions using [returnraw] and after I got the engine sorted out and the technique worked out all seemed to be OK. I must admit that I have never even thought about forcing IE6 to download rather than open. You could 'Zip' it, then it would have to download. Stuart Tremain idfk web developments, sydney, australia On 20 Aug 2005, at 12:23 AM, Clint Davis wrote: > 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 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:

IRC for Webdna (2003) Mac Vs WindowsNT (1997) Secure server question (1997) [convertChars] and HTML Tags (1997) Re:Sami (1998) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Error Lob.db records error message not name (1997) Emailer help....! (1997) 2.1 bugs left over from beta cycle (1998) taxTotal (1997) File dates in WebCatalog .tmpl/.inc (1997) Dates! (1998) Redirect frame targets (1998) Problem (1997) OT: Time Tracking (2003) Include a big block of text (1997) Logic Help Needed (2003) Credit Card Number checking (1997) [LOOKUP] (1997) This list needs a digest: rant, rave... (1997)