Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > download the file, instead of opening it...

Reply
Thread Tools

download the file, instead of opening it...

 
 
aotemp@hotmail.com
Guest
Posts: n/a
 
      11-09-2005
I have a .prc file (a file that is used as a way to install an
application onto a palm pilot). However when I click on the link, it
does not offer a download, instead it opens it up into a really ugly
looking text file.

anyone know how to fix this?

Thanks

 
Reply With Quote
 
 
 
 
Mitja Trampus
Guest
Posts: n/a
 
      11-09-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> I have a .prc file (a file that is used as a way to install an
> application onto a palm pilot). However when I click on the link, it
> does not offer a download, instead it opens it up into a really ugly
> looking text file.


url?

You're probably sending wrong http headers along with the
file. Either that, or you have your browser configured in a
weird way.
 
Reply With Quote
 
 
 
 
Travis Newbury
Guest
Posts: n/a
 
      11-09-2005
(E-Mail Removed) wrote:
> I have a .prc file (a file that is used as a way to install an
> application onto a palm pilot). However when I click on the link, it
> does not offer a download, instead it opens it up into a really ugly
> looking text file.
> anyone know how to fix this?


Yes, install the palm pilot installer on the systm. It will set up the
right application for your visitor.

--
-=tn=-

 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      11-09-2005
In post <news:(E-Mail Removed) oups.com>,
(E-Mail Removed) said:

> I have a .prc file (a file that is used as a way to install an
> application onto a palm pilot). However when I click on the link, it
> does not offer a download, instead it opens it up into a really ugly
> looking text file.


you need to tell your giggly server the mime type of the file, sounds like
its just getting sent as text/plain at the moment.

the l i t t l e v o i c e s tell me the correct mine is
application/x-pilot-prc

(assumes apache) stick the below in a .htaccess file[1] for the directory
you want the directives to apply to. child directories inherit the
directives so if you stick it in your root[2] the directives will apply to
all of your site.

AddType application/x-pilot-prc .prc

once you do that the server will send the giggly file with the correct
mime. its up to the computer requesting the file to then know what to do
with it, (such as automatically stuff it into a palm pilot plugged into the
computer) if it doesn't know what to do with it then you're most likely to
get a download dialog.


[1] a .htaccess file is a plain text file named as shown. if you create the
file with notepad save the file with quotes to prevent notepad from adding
a .txt extension i.e: ".htaccess"

[2] i like saying root, it makes me giggle.

you may need to read these:

How to post from Google:
http://www.safalra.com/special/googlegroupsreply/

How do I quote correctly in Usenet? - Quoting and Answering
http://www.netmeister.org/news/learn2quote2.html

--
l i t t l e v o i c e s
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE7 opening new window instead of tab Robin Computer Support 5 02-18-2007 05:33 PM
Problem with e-mails opening in Firefox 2 - URLs with .php open in IE instead GraB NZ Computing 6 12-11-2006 08:23 AM
TWO images keep opening up instead of one.... Help!!! Leesa_Tay@softhome.net Computer Support 3 03-23-2006 01:02 PM
Opening ASP page causes file download dialog instead Neil Rossi ASP General 5 02-07-2006 09:54 PM



Advertisments