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:

Only charge card when product shipped ? (1997) itools webcat atartup (2000) Plugin or CGI or both (1997) PCS Frames (1997) Pipes instead of tabs (1998) Putting & into a database (1999) [WebDNA] Barcode (2014) Server Freeze (1998) WebCatalog as a ListServ (1998) Problem with Showif & Applescript (1997) Looping control (1997) [REPLACE] inside [FOUNDITEMS] (1998) unsubscribe (1997) RE: PDF (1999) Comments in db? (1997) WebMerchant and Mac Auth Hub Help Please (1999) Instructions for Digest (1997) [WebDNA] Capitalize surprise (2012) update on wn searching (1997) (1997)