Re: [WebDNA] ReturnRAW problem with Safari

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112377
interpreted = N
texte = --089e013d13a0ecc299051c14e4f2 Content-Type: text/plain; charset=UTF-8 Stuart, Hi - here are the three files I'm using: index.html [!] Generate a list of download links for all files in local directory [/!] Click on a filename to download.
download.html [!]Initailize the getfile variable[/!] [text secure=f]getfile=[/text] [!]Check if filename was passed in[/!] [showif [getfile]!] [text]line_ending=%0D%0A[/text] [!]Generate the response[/!] [returnraw binarybody=[getfile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!] [/!]Status: 200[unurl][line_ending][/unurl][!] [/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!] [/!]Content-Disposition: attachment; filename="[getfile]"[unurl][line_ending][line_ending][/unurl][!] [/!][/returnraw] [/showif] .htaccess AddType application/octet-stream html --089e013d13a0ecc299051c14e4f2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Stuart,

Hi - here are the three files I= 'm using:

index.html

<= div class=3D"gmail_signature">
<!--HAS_WEBDNA_= TAGS-->
<HTML>
<BODY>

[!] Generate a list of download links for all files in local directo= ry [/!]
Click on a filename to download.<br />
&l= t;ul>[listfiles path=3D.]
[showif [isfile]=3DT][showif [filena= me]^.pdf]
<li><a href=3Ddownload.html?getfile=3D[url][fi= lename][/url]>[filename]</a></li>
[/showif][/showi= f]
[/listfiles]</ul>
</BODY>
<= /HTML>

download.html

<!--HAS_WEBDNA_TAGS-->
<HTML>
<BODY= >
[!]Initailize the getfile variable[/!]=
[text secure=3Df]getfile=3D[/text]

[!]Check if f= ilename was passed in[/!]
[showif [getfile]= !]
[text]line_ending=3D%0D%0A[/text]
<= div class=3D"gmail_extra">
[!]Generate = the response[/!]
[returnraw binarybody=3D[g= etfile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!]
[/!]Status: 200[unurl][line_ending][/unurl][!]
[/!]Content-Type: application/octet-stream[unurl][line_end= ing][/unurl][!]
[/!]Content-Disposition: at= tachment; filename=3D"[getfile]"[unurl][line_ending][line_ending]= [/unurl][!]
[/!][/returnraw]

[/showif]

</BODY>
</HTML>


= .htaccess

<Files download.html>
= AddType application/octet-stream html
</Files>
--089e013d13a0ecc299051c14e4f2-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] ReturnRAW problem with Safari (Stuart Tremain 2015)
  2. Re: [WebDNA] ReturnRAW problem with Safari (Tom Duke 2015)
  3. Re: [WebDNA] ReturnRAW problem with Safari (Tom Duke 2015)
  4. Re: [WebDNA] ReturnRAW problem with Safari (Stuart Tremain 2015)
  5. Re: [WebDNA] ReturnRAW problem with Safari (Stuart Tremain 2015)
  6. Re: [WebDNA] ReturnRAW problem with Safari (Tom Duke 2015)
  7. [WebDNA] ReturnRAW problem with Safari (Stuart Tremain 2015)
--089e013d13a0ecc299051c14e4f2 Content-Type: text/plain; charset=UTF-8 Stuart, Hi - here are the three files I'm using: index.html [!] Generate a list of download links for all files in local directory [/!] Click on a filename to download.
download.html [!]Initailize the getfile variable[/!] [text secure=f]getfile=[/text] [!]Check if filename was passed in[/!] [showif [getfile]!] [text]line_ending=%0D%0A[/text] [!]Generate the response[/!] [returnraw binarybody=[getfile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!] [/!]Status: 200[unurl][line_ending][/unurl][!] [/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!] [/!]Content-Disposition: attachment; filename="[getfile]"[unurl][line_ending][line_ending][/unurl][!] [/!][/returnraw] [/showif] .htaccess AddType application/octet-stream html --089e013d13a0ecc299051c14e4f2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Stuart,

Hi - here are the three files I= 'm using:

index.html

<= div class=3D"gmail_signature">
<!--HAS_WEBDNA_= TAGS-->
<HTML>
<BODY>

[!] Generate a list of download links for all files in local directo= ry [/!]
Click on a filename to download.<br />
&l= t;ul>[listfiles path=3D.]
[showif [isfile]=3DT][showif [filena= me]^.pdf]
<li><a href=3Ddownload.html?getfile=3D[url][fi= lename][/url]>[filename]</a></li>
[/showif][/showi= f]
[/listfiles]</ul>
</BODY>
<= /HTML>

download.html

<!--HAS_WEBDNA_TAGS-->
<HTML>
<BODY= >
[!]Initailize the getfile variable[/!]=
[text secure=3Df]getfile=3D[/text]

[!]Check if f= ilename was passed in[/!]
[showif [getfile]= !]
[text]line_ending=3D%0D%0A[/text]
<= div class=3D"gmail_extra">
[!]Generate = the response[/!]
[returnraw binarybody=3D[g= etfile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!]
[/!]Status: 200[unurl][line_ending][/unurl][!]
[/!]Content-Type: application/octet-stream[unurl][line_end= ing][/unurl][!]
[/!]Content-Disposition: at= tachment; filename=3D"[getfile]"[unurl][line_ending][line_ending]= [/unurl][!]
[/!][/returnraw]

[/showif]

</BODY>
</HTML>


= .htaccess

<Files download.html>
= AddType application/octet-stream html
</Files>
--089e013d13a0ecc299051c14e4f2-- Tom Duke

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:

Formvariable (2000) more on quicktime test stuff (1997) no [search] with NT (1997) Re2: frames & carts (1997) Problems appending to database (1997) Parse question (2005) WebTEN vs webSTAR (1998) Another Large Database Questions (1997) Credit Card Number Stripping Digit (1997) Adding Message to Order (1997) HELP-1!!! (1998) WC Bulletin Board Issue (2003) Https not showing products (2004) Shipcost Prob solved, new one arises (1998) For those of you not on the WebCatalog Beta... (1997) color (1999) WebCat2 as a chat server? (1997) WebCat 5 Intranet Question (2003) How can I record purchases to a database? (1998) turning every 5th line red (1998)