Re: [WebDNA] ReturnRAW problem with Safari

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112373
interpreted = N
texte = --001a11c1a8088ede92051c147c42 Content-Type: text/plain; charset=UTF-8 Stuart, Hi - the WebDNA page is being served out as text/html - the 'Content-Type' setting within the '[returnraw]' is not being set. I have this issue as well using WebDNA 6.2 on CentOS5. So ... You need to set up two pages, one that lists the files (index.html) and one that contains the '[returnraw]' code and serves out the files (download.html). Then add a .htaccess file with: AddType application/octet-stream html This sets the correct mime-type for the download page and the download should work as expected in all browsers: http://www.revolutionaries.ie/testspace/returnraw/ Take care - Tom ============================================== Digital Revolutionaries 1st Floor, Castleriver House 14-15 Parliament Street Temple Bar,Dublin 2 Ireland ---------------------------------------------- [t]: + 353 1 4403907 [e]: [w]: ============================================== On 30 July 2015 at 03:25, Stuart Tremain wrote: > Hi > > I am not sure if ReturnRaw gets much use but I have been experimenting > with it lately and have encountered a big problem with Safari on Mac. > > http://www.webdna.us/page.dna?numero=257 > > Using the BinaryBody option and example at the bottom of the page I can > get this to work properly in Chrome & Firefox but in Safari the file always > downloads with a .html extension. > > I have spent hours with server (Apache2 on Ubuntu 12.04) & .htaccess > configs but can not get it to go away !! > > Does anyone have any insights with this ? > > > > > Kind regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > > > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --001a11c1a8088ede92051c147c42 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Stuart,

Hi - the WebDNA page is being s= erved out as text/html - the 'Content-Type' setting within the '= ;[returnraw]' is not being set.=C2=A0 I have this issue as well using W= ebDNA 6.2 on CentOS5.

So ...

<= div>You need to set up two pages, one that lists the files (index.html) and= one that contains the '[returnraw]' code and serves out the files = (download.html). =C2=A0 Then add a .htaccess file with:

<Files download.html>
AddType application/octet-stream htm= l
</Files>

This sets the cor= rect mime-type for the download page and the download should work as expect= ed in all browsers:


Take care
- Tom




<= div>



= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Digital = Revolutionaries
1st Floor, Castleriver House
14-15 Parliament Street<= br>Temple Bar,Dublin 2
Ireland
--------------------------------------= --------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie>
[w]:= <http://ww= w.revolutionaries.ie/>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D

On 30 July 2015 at 03:25, Stuart Tremain <= webdna@idfk.com.au> wrote:
=
Hi

I am not sure if = ReturnRaw gets much use but I have been experimenting with it lately and ha= ve encountered a big problem with Safari on Mac.

<= a href=3D"http://www.webdna.us/page.dna?numero=3D257" target=3D"_blank">htt= p://www.webdna.us/page.dna?numero=3D257

Using = the BinaryBody option and example at the bottom of the page I can get this = to work properly in Chrome & Firefox but in Safari the file always down= loads with a .html extension.

I have spent hours w= ith server (Apache2 on Ubuntu 12.04) & .htaccess configs but can not ge= t it to go away !!

Does anyone have any insights w= ith this ?




Kind regards

Stuart= Tremain
IDFK Web Developments
AUSTRALIA




--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--001a11c1a8088ede92051c147c42-- 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)
--001a11c1a8088ede92051c147c42 Content-Type: text/plain; charset=UTF-8 Stuart, Hi - the WebDNA page is being served out as text/html - the 'Content-Type' setting within the '[returnraw]' is not being set. I have this issue as well using WebDNA 6.2 on CentOS5. So ... You need to set up two pages, one that lists the files (index.html) and one that contains the '[returnraw]' code and serves out the files (download.html). Then add a .htaccess file with: AddType application/octet-stream html This sets the correct mime-type for the download page and the download should work as expected in all browsers: http://www.revolutionaries.ie/testspace/returnraw/ Take care - Tom ============================================== Digital Revolutionaries 1st Floor, Castleriver House 14-15 Parliament Street Temple Bar,Dublin 2 Ireland ---------------------------------------------- [t]: + 353 1 4403907 [e]: [w]: ============================================== On 30 July 2015 at 03:25, Stuart Tremain wrote: > Hi > > I am not sure if ReturnRaw gets much use but I have been experimenting > with it lately and have encountered a big problem with Safari on Mac. > > http://www.webdna.us/page.dna?numero=257 > > Using the BinaryBody option and example at the bottom of the page I can > get this to work properly in Chrome & Firefox but in Safari the file always > downloads with a .html extension. > > I have spent hours with server (Apache2 on Ubuntu 12.04) & .htaccess > configs but can not get it to go away !! > > Does anyone have any insights with this ? > > > > > Kind regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > > > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --001a11c1a8088ede92051c147c42 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Stuart,

Hi - the WebDNA page is being s= erved out as text/html - the 'Content-Type' setting within the '= ;[returnraw]' is not being set.=C2=A0 I have this issue as well using W= ebDNA 6.2 on CentOS5.

So ...

<= div>You need to set up two pages, one that lists the files (index.html) and= one that contains the '[returnraw]' code and serves out the files = (download.html). =C2=A0 Then add a .htaccess file with:

<Files download.html>
AddType application/octet-stream htm= l
</Files>

This sets the cor= rect mime-type for the download page and the download should work as expect= ed in all browsers:

=C2=A0 =C2=A0 =C2=A0http://www.revolutiona= ries.ie/testspace/returnraw/

Take care
- Tom




<= div>



= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Digital = Revolutionaries
1st Floor, Castleriver House
14-15 Parliament Street<= br>Temple Bar,Dublin 2
Ireland
--------------------------------------= --------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie>
[w]:= <http://ww= w.revolutionaries.ie/>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D

On 30 July 2015 at 03:25, Stuart Tremain <= webdna@idfk.com.au> wrote:
=
Hi

I am not sure if = ReturnRaw gets much use but I have been experimenting with it lately and ha= ve encountered a big problem with Safari on Mac.

<= a href=3D"http://www.webdna.us/page.dna?numero=3D257" target=3D"_blank">htt= p://www.webdna.us/page.dna?numero=3D257

Using = the BinaryBody option and example at the bottom of the page I can get this = to work properly in Chrome & Firefox but in Safari the file always down= loads with a .html extension.

I have spent hours w= ith server (Apache2 on Ubuntu 12.04) & .htaccess configs but can not ge= t it to go away !!

Does anyone have any insights w= ith this ?




Kind regards

Stuart= Tremain
IDFK Web Developments
AUSTRALIA




--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--001a11c1a8088ede92051c147c42-- 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:

OT: zipcodes (2002) Two stores, one server (1998) [WebDNA] Calculate Cube root (2012) WebCat2b13 Command Reference Doc error (1997) Table code broken? (2004) Search with Special Chars (1997) ShowNext (1997) sandboxes with 6.0 (2004) [ShowNext] (2007) Still having problems with Authen (1997) Country & Ship-to address & other fields ? (1997) Search design (1997) lookup (1998) mac hack (1997) Cancel Subscription (1996) [WebDNA] Version control (git or subversion) workflow for WebDNA (2012) SiteEdit NewFile.html ? (1997) Shopping carts and reloading pages (1997) [HTML*] (a proposition) (1997) TCPConnect to query for Domain expiration (2000)