Re: [ReturnRaw] and PDFs

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62816
interpreted = N
texte = According to the following forum post, it may not be possible with IE6 to force the download of a PDF file: http://www.dynamicdrive.com/forums/showthread.php?t=3407 On 8/19/05 9: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 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)
According to the following forum post, it may not be possible with IE6 to force the download of a PDF file: http://www.dynamicdrive.com/forums/showthread.php?t=3407 On 8/19/05 9: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 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:

dbEdit (2003) [WebDNA] Sorry WebDNA server not running (2014) all records returned. (1997) Smart caching problems with 2.1b3? (1997) [/application] error? (1997) New command suggestion (1997) [subtotal] problems -- help? (1998) RE: Clearing orders and database help! (1997) Help! WebCat2 bug (1997) Date search bug (1998) I give up!! (1997) [delete] problem (1997) Navigator 4.01 (1997) Fwd: more ! testing (1997) WebCatalog for guestbook ? (1997) Plugin or CGI or both (1997) no template caching (1997) [append] vs. [appendfile] delta + question? (1997) Separate SSL Server (1997) Faxing orders in place of email (1997)