On Apr 9, 2008, at 11:09 AM, gannon wrote:
Hello,
I’m using 5 Pro and I can’t find an action called, “file download,
or download file” it seems like this action used to exist in
4…but I’m not sure if it was replaced by “link to file” in 5.
I have an odd file from a client, (.mht) and when I insert that
file using the link to file action, it just opens a browser window
with a bunch of garbage code.
Your hosting provider’s server is in charge of identifying files and
sending along a “header” that describes the file when it serves that
file to the browser. The browser is in charge of what to do with
files that are linked within your page, and uses the header to make
this decision. Most Web servers are configured to send the text/plain
or text/html mime-type header whenever they encounter a file that
they don’t recognize. You will need to ask your hosting provider to
add a mime-type for the .mht extension, or you may be able to do this
yourself using an .htaccess file.
Try using an FTP application to upload a plain text file into your
Web root (or if you want to be more particular, into the folder where
these files will live). You can name it anything you like for now.
Inside this text file, add this line:
AddType application/octet-stream .mht
Finally, use your FTP application to rename this text file .htaccess
(leading dot is critical).
Don’t be surprised if the file vanishes as soon as you do this,
because “dotfiles” are invisible by convention on Unix servers. You
may also see an error that you are not allowed to rename the file
thusly because the file exists.
Your FTP application will have an option or preference somewhere to
“show hidden files”. If you enable this, your .htaccess file will re-
appear, along with (maybe) a whole bunch of other hidden junk that
powers your hosting provider’s control panel. Be very careful not to
change any of this stuff!
If you already have an .htaccess file, then open it for editing
(Apple-J in most FTP apps on the Mac) and add the line above to it,
and save.
Now refresh your browser and try clicking on one of those nasty
files. It should just download as a generic file.
Walter
Here is the link and file in question, http://myronangstman.com/
firm/news.html …toward the bottom of the March 08 News, in the
paragraph that start, “March is Iditarod month in Alaska…” and
the link that says “Download Video”.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options