public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* HTML Question -- Binary Downloads
@  Janina Sajka
   ` David Poehlman
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: speakup, ma-linux

Can someone tell me what determines whether a hyperlinked file will be 
treated as a text page to be retrieved and rendered as opposed to a binary 
file to be downloaded and saved?

I'm writing a HOWTO and want to point to downloadable image files with 
hyperlinks, but my links aren't working correctly. I've tried both http:// 
and ftp:// addressing, but always get the same result--my iso images are 
grabbed as though they were text. What I'm wanting is the lynx screen that 
says "Download or Cancel."

Is this a permissions issue? A server-side Apache configuration issue? I'm 
stumped.


All help most gratefully appreciated.


-- 
	
				Janina Sajka, Director
				Technology Research and Development
				Governmental Relations Group
				American Foundation for the Blind (AFB)

Email: janina@afb.net		Phone: (202) 408-8175

Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org

Will electronic books surpass print books? Read our white paper,
Surpassing Gutenberg, at http://www.afb.org/ebook.asp

Download a free sample Digital Talking Book edition of Martin Luther
King Jr's inspiring "I Have A Dream" speech at
http://www.afb.org/mlkweb.asp

Learn how to make accessible software at
http://www.afb.org/accessapp.asp



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HTML Question -- Binary Downloads
   HTML Question -- Binary Downloads Janina Sajka
@  ` David Poehlman
     ` Janina Sajka
   ` Gregory Nowak
   ` John Covici
  2 siblings, 1 reply; 8+ messages in thread
From: David Poehlman @  UTC (permalink / raw)
  To: speakup

Hi there janina!
I might be able to help, but first, have you found any pages that
proffer this with the the extention you are trying to code for?  It
seems that your lynx is seeing .iso as some sort of readable text.  This
may be changeable on your end but I wouldn't begin to know how to do it.
I know for instance, with ie, .pdf, .txt, .doc and many others act this
way unless you jump through hoops to prevent it.  The most relyable way
I have found to provide file transferrability is to make zip or exe the
extention even if it is not really the extention and depending on how
the server is configured, you may have to use ftp:// in the hreff.

I hope this helps.

----- Original Message -----
From: "Janina Sajka" <janina@afb.net>
To: <speakup@braille.uwo.ca>; <ma-linux@tux.org>
Sent: Tuesday, January 01, 2002 11:42 AM
Subject: HTML Question -- Binary Downloads


Can someone tell me what determines whether a hyperlinked file will be
treated as a text page to be retrieved and rendered as opposed to a
binary
file to be downloaded and saved?

I'm writing a HOWTO and want to point to downloadable image files with
hyperlinks, but my links aren't working correctly. I've tried both
http://
and ftp:// addressing, but always get the same result--my iso images are
grabbed as though they were text. What I'm wanting is the lynx screen
that
says "Download or Cancel."

Is this a permissions issue? A server-side Apache configuration issue?
I'm
stumped.


All help most gratefully appreciated.


--

Janina Sajka, Director
Technology Research and Development
Governmental Relations Group
American Foundation for the Blind (AFB)

Email: janina@afb.net Phone: (202) 408-8175

Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org

Will electronic books surpass print books? Read our white paper,
Surpassing Gutenberg, at http://www.afb.org/ebook.asp

Download a free sample Digital Talking Book edition of Martin Luther
King Jr's inspiring "I Have A Dream" speech at
http://www.afb.org/mlkweb.asp

Learn how to make accessible software at
http://www.afb.org/accessapp.asp


_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HTML Question -- Binary Downloads
   ` David Poehlman
@    ` Janina Sajka
       ` David Poehlman
  0 siblings, 1 reply; 8+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: speakup

Hi, David:

Thanks for your thoughts--and Happy New Year to you.

I have the following response to my question from the ma-linux list which 
sounds correct to me, and have already forwarded my request on to Kirk:

>From jamesjuran@alumni.psu.edu Tue Jan  1 12:26:57 2002
From: James Juran <jamesjuran@alumni.psu.edu>

You need to make sure the server generates the proper Content-type HTTP
header.  You need to make sure this gets set correctly by Apache to
something like application/octet-stream.  It's then up to the browser to
decide what to do with files of type application/octet-stream.  The
default configuration in most browsers will give you the standard
Download/Save/Cancel options.

For information on setting this up in Apache, see
http://httpd.apache.org/docs/mod/mod_mime.html .

--
James Juran
jamesjuran@alumni.psu.edu

On Tue, 1 Jan 2002, David Poehlman wrote:

> Hi there janina!
> I might be able to help, but first, have you found any pages that
> proffer this with the the extention you are trying to code for?  It
> seems that your lynx is seeing .iso as some sort of readable text.  This
> may be changeable on your end but I wouldn't begin to know how to do it.
> I know for instance, with ie, .pdf, .txt, .doc and many others act this
> way unless you jump through hoops to prevent it.  The most relyable way
> I have found to provide file transferrability is to make zip or exe the
> extention even if it is not really the extention and depending on how
> the server is configured, you may have to use ftp:// in the hreff.
> 
> I hope this helps.
> 
> ----- Original Message -----
> From: "Janina Sajka" <janina@afb.net>
> To: <speakup@braille.uwo.ca>; <ma-linux@tux.org>
> Sent: Tuesday, January 01, 2002 11:42 AM
> Subject: HTML Question -- Binary Downloads
> 
> 
> Can someone tell me what determines whether a hyperlinked file will be
> treated as a text page to be retrieved and rendered as opposed to a
> binary
> file to be downloaded and saved?
> 
> I'm writing a HOWTO and want to point to downloadable image files with
> hyperlinks, but my links aren't working correctly. I've tried both
> http://
> and ftp:// addressing, but always get the same result--my iso images are
> grabbed as though they were text. What I'm wanting is the lynx screen
> that
> says "Download or Cancel."
> 
> Is this a permissions issue? A server-side Apache configuration issue?
> I'm
> stumped.
> 
> 
> All help most gratefully appreciated.
> 
> 
> --
> 
> Janina Sajka, Director
> Technology Research and Development
> Governmental Relations Group
> American Foundation for the Blind (AFB)
> 
> Email: janina@afb.net Phone: (202) 408-8175
> 
> Chair, Accessibility SIG
> Open Electronic Book Forum (OEBF)
> http://www.openebook.org
> 
> Will electronic books surpass print books? Read our white paper,
> Surpassing Gutenberg, at http://www.afb.org/ebook.asp
> 
> Download a free sample Digital Talking Book edition of Martin Luther
> King Jr's inspiring "I Have A Dream" speech at
> http://www.afb.org/mlkweb.asp
> 
> Learn how to make accessible software at
> http://www.afb.org/accessapp.asp
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 

-- 
	
				Janina Sajka, Director
				Technology Research and Development
				Governmental Relations Group
				American Foundation for the Blind (AFB)

Email: janina@afb.net		Phone: (202) 408-8175

Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HTML Question -- Binary Downloads
     ` Janina Sajka
@      ` David Poehlman
  0 siblings, 0 replies; 8+ messages in thread
From: David Poehlman @  UTC (permalink / raw)
  To: speakup

aha, I'd forgotten about that little trick.

----- Original Message -----
From: "Janina Sajka" <janina@afb.net>
To: <speakup@braille.uwo.ca>
Sent: Tuesday, January 01, 2002 12:29 PM
Subject: Re: HTML Question -- Binary Downloads


Hi, David:

Thanks for your thoughts--and Happy New Year to you.

I have the following response to my question from the ma-linux list
which
sounds correct to me, and have already forwarded my request on to Kirk:

>From jamesjuran@alumni.psu.edu Tue Jan  1 12:26:57 2002
From: James Juran <jamesjuran@alumni.psu.edu>

You need to make sure the server generates the proper Content-type HTTP
header.  You need to make sure this gets set correctly by Apache to
something like application/octet-stream.  It's then up to the browser to
decide what to do with files of type application/octet-stream.  The
default configuration in most browsers will give you the standard
Download/Save/Cancel options.

For information on setting this up in Apache, see
http://httpd.apache.org/docs/mod/mod_mime.html .

--
James Juran
jamesjuran@alumni.psu.edu

On Tue, 1 Jan 2002, David Poehlman wrote:

> Hi there janina!
> I might be able to help, but first, have you found any pages that
> proffer this with the the extention you are trying to code for?  It
> seems that your lynx is seeing .iso as some sort of readable text.
This
> may be changeable on your end but I wouldn't begin to know how to do
it.
> I know for instance, with ie, .pdf, .txt, .doc and many others act
this
> way unless you jump through hoops to prevent it.  The most relyable
way
> I have found to provide file transferrability is to make zip or exe
the
> extention even if it is not really the extention and depending on how
> the server is configured, you may have to use ftp:// in the hreff.
>
> I hope this helps.
>
> ----- Original Message -----
> From: "Janina Sajka" <janina@afb.net>
> To: <speakup@braille.uwo.ca>; <ma-linux@tux.org>
> Sent: Tuesday, January 01, 2002 11:42 AM
> Subject: HTML Question -- Binary Downloads
>
>
> Can someone tell me what determines whether a hyperlinked file will be
> treated as a text page to be retrieved and rendered as opposed to a
> binary
> file to be downloaded and saved?
>
> I'm writing a HOWTO and want to point to downloadable image files with
> hyperlinks, but my links aren't working correctly. I've tried both
> http://
> and ftp:// addressing, but always get the same result--my iso images
are
> grabbed as though they were text. What I'm wanting is the lynx screen
> that
> says "Download or Cancel."
>
> Is this a permissions issue? A server-side Apache configuration issue?
> I'm
> stumped.
>
>
> All help most gratefully appreciated.
>
>
> --
>
> Janina Sajka, Director
> Technology Research and Development
> Governmental Relations Group
> American Foundation for the Blind (AFB)
>
> Email: janina@afb.net Phone: (202) 408-8175
>
> Chair, Accessibility SIG
> Open Electronic Book Forum (OEBF)
> http://www.openebook.org
>
> Will electronic books surpass print books? Read our white paper,
> Surpassing Gutenberg, at http://www.afb.org/ebook.asp
>
> Download a free sample Digital Talking Book edition of Martin Luther
> King Jr's inspiring "I Have A Dream" speech at
> http://www.afb.org/mlkweb.asp
>
> Learn how to make accessible software at
> http://www.afb.org/accessapp.asp
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>

--

Janina Sajka, Director
Technology Research and Development
Governmental Relations Group
American Foundation for the Blind (AFB)

Email: janina@afb.net Phone: (202) 408-8175

Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org


_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HTML Question -- Binary Downloads
   HTML Question -- Binary Downloads Janina Sajka
   ` David Poehlman
@  ` Gregory Nowak
     ` Geoff Shang
   ` John Covici
  2 siblings, 1 reply; 8+ messages in thread
From: Gregory Nowak @  UTC (permalink / raw)
  To: speakup

I've always thought it was the file extention like iso, zip, gz, exe, com and so on.
But, I guess not.
Greg


On Tue, Jan 01, 2002 at 11:42:51AM -0500, Janina Sajka wrote:
> Can someone tell me what determines whether a hyperlinked file will be 
> treated as a text page to be retrieved and rendered as opposed to a binary 
> file to be downloaded and saved?
> 
> I'm writing a HOWTO and want to point to downloadable image files with 
> hyperlinks, but my links aren't working correctly. I've tried both http:// 
> and ftp:// addressing, but always get the same result--my iso images are 
> grabbed as though they were text. What I'm wanting is the lynx screen that 
> says "Download or Cancel."
> 
> Is this a permissions issue? A server-side Apache configuration issue? I'm 
> stumped.
> 
> 
> All help most gratefully appreciated.
> 
> 
> -- 
> 	
> 				Janina Sajka, Director
> 				Technology Research and Development
> 				Governmental Relations Group
> 				American Foundation for the Blind (AFB)
> 
> Email: janina@afb.net		Phone: (202) 408-8175
> 
> Chair, Accessibility SIG
> Open Electronic Book Forum (OEBF)
> http://www.openebook.org
> 
> Will electronic books surpass print books? Read our white paper,
> Surpassing Gutenberg, at http://www.afb.org/ebook.asp
> 
> Download a free sample Digital Talking Book edition of Martin Luther
> King Jr's inspiring "I Have A Dream" speech at
> http://www.afb.org/mlkweb.asp
> 
> Learn how to make accessible software at
> http://www.afb.org/accessapp.asp
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HTML Question -- Binary Downloads
   ` Gregory Nowak
@    ` Geoff Shang
  0 siblings, 0 replies; 8+ messages in thread
From: Geoff Shang @  UTC (permalink / raw)
  To: speakup

On Tue, 1 Jan 2002, Gregory Nowak wrote:

> I've always thought it was the file extention like iso, zip, gz, exe, com
> and so on. But, I guess not.

Windows would have you believe that it's all done on file extentions, but
yes, mime type is the key here.  I was going to suggest
application/octet-stream but I've not had a chance to read this list till
now.

Geoff.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HTML Question -- Binary Downloads
   HTML Question -- Binary Downloads Janina Sajka
   ` David Poehlman
   ` Gregory Nowak
@  ` John Covici
     ` Janina Sajka
  2 siblings, 1 reply; 8+ messages in thread
From: John Covici @  UTC (permalink / raw)
  To: speakup

As far as I know, if you hit d on the link it will download --
otherwise its determined by a combination of your mailcap file and the
/etc/mime.types and /etc/mime.magic files.  If it thinks its
text/plain it will try to display it -- sometimes with weird results.

on Tue, 1 Jan 2002 11:42:51 -0500 (EST) Janina Sajka <janina@afb.net> wrote:

> Can someone tell me what determines whether a hyperlinked file will be 
> treated as a text page to be retrieved and rendered as opposed to a binary 
> file to be downloaded and saved?
>
> I'm writing a HOWTO and want to point to downloadable image files with 
> hyperlinks, but my links aren't working correctly. I've tried both http:// 
> and ftp:// addressing, but always get the same result--my iso images are 
> grabbed as though they were text. What I'm wanting is the lynx screen that 
> says "Download or Cancel."
>
> Is this a permissions issue? A server-side Apache configuration issue? I'm 
> stumped.
>
>
> All help most gratefully appreciated.
>
>
> -- 
> 	
> 				Janina Sajka, Director
> 				Technology Research and Development
> 				Governmental Relations Group
> 				American Foundation for the Blind (AFB)
>
> Email: janina@afb.net		Phone: (202) 408-8175
>
> Chair, Accessibility SIG
> Open Electronic Book Forum (OEBF)
> http://www.openebook.org
>
> Will electronic books surpass print books? Read our white paper,
> Surpassing Gutenberg, at http://www.afb.org/ebook.asp
>
> Download a free sample Digital Talking Book edition of Martin Luther
> King Jr's inspiring "I Have A Dream" speech at
> http://www.afb.org/mlkweb.asp
>
> Learn how to make accessible software at
> http://www.afb.org/accessapp.asp
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
         John Covici
         covici@ccs.covici.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HTML Question -- Binary Downloads
   ` John Covici
@    ` Janina Sajka
  0 siblings, 0 replies; 8+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: speakup; +Cc: speakup

John: Yes, I know this, but this is for a public page, and I don't want to 
require users to have to know this. Especially, since there's no need for 
this to happen.
 On Wed, 2 Jan 2002, John Covici wrote:

> As far as I know, if you hit d on the link it will download --
> otherwise its determined by a combination of your mailcap file and the
> /etc/mime.types and /etc/mime.magic files.  If it thinks its
> text/plain it will try to display it -- sometimes with weird results.
> 
> on Tue, 1 Jan 2002 11:42:51 -0500 (EST) Janina Sajka <janina@afb.net> wrote:
> 
> > Can someone tell me what determines whether a hyperlinked file will be 
> > treated as a text page to be retrieved and rendered as opposed to a binary 
> > file to be downloaded and saved?
> >
> > I'm writing a HOWTO and want to point to downloadable image files with 
> > hyperlinks, but my links aren't working correctly. I've tried both http:// 
> > and ftp:// addressing, but always get the same result--my iso images are 
> > grabbed as though they were text. What I'm wanting is the lynx screen that 
> > says "Download or Cancel."
> >
> > Is this a permissions issue? A server-side Apache configuration issue? I'm 
> > stumped.
> >
> >
> > All help most gratefully appreciated.
> >
> >
> > -- 
> > 	
> > 				Janina Sajka, Director
> > 				Technology Research and Development
> > 				Governmental Relations Group
> > 				American Foundation for the Blind (AFB)
> >
> > Email: janina@afb.net		Phone: (202) 408-8175
> >
> > Chair, Accessibility SIG
> > Open Electronic Book Forum (OEBF)
> > http://www.openebook.org
> >
> > Will electronic books surpass print books? Read our white paper,
> > Surpassing Gutenberg, at http://www.afb.org/ebook.asp
> >
> > Download a free sample Digital Talking Book edition of Martin Luther
> > King Jr's inspiring "I Have A Dream" speech at
> > http://www.afb.org/mlkweb.asp
> >
> > Learn how to make accessible software at
> > http://www.afb.org/accessapp.asp
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 

-- 
	
				Janina Sajka, Director
				Technology Research and Development
				Governmental Relations Group
				American Foundation for the Blind (AFB)

Email: janina@afb.net		Phone: (202) 408-8175

Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 HTML Question -- Binary Downloads Janina Sajka
 ` David Poehlman
   ` Janina Sajka
     ` David Poehlman
 ` Gregory Nowak
   ` Geoff Shang
 ` John Covici
   ` Janina Sajka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).