Forums | MacLife
You are not logged in.
#1 2003-01-31 4:35 am
Downloadable links.
Hi all Masters of the Web.
I'm trying to put a picures on my site the will be downloadable to stupid people.
I've uploaded a tiff picture (to pc and mac) and would like them to click on the link to download.
However, if it is a link to picture.tiff it will either open the image in a new page or will tell me he doens't know what to do with it.
For now the only solution I've found was to dropstuff it with aladin.. But it seems silly to do so for every picture, and what if they dont have stuffit??
Anyother way to make a link downloadable (without them having to ctrl-click/right-click and choose "save link to disk")
Thanks
New project : Goddess Of Destruction CD available online
Jingles writers
Check out http://www.darlingnikkie.com to discover the sonic world of Darling Nikkie (aka Jade4U)
Offline
#2 2003-01-31 11:05 am
- registered_user
- bulletproof
- From: padding: zero-pixels;
- Registered: 2000-12-19
- Posts: 16020
- Website
Re: Downloadable links.
I'm afraid that you can't do what you want because it depends on their browser how the file is handled. A .sit file will always download though, and Stuffit Expander is a free download for both Mac and Windows.
So you can either compress them all into .sit or .zip, or you can leave a note saying to option-clink the link to download the image, or a note saying go to the link and choose save.
If your distributing tiff files, it's probably better to stuff them anyway because they will download much faster and use less of your bandwidth.
Offline
#3 2003-01-31 11:44 am
Re: Downloadable links.
Thanks for your quick reply.
Dropstuff, is not free . So I have to use and pay for it.
Also , if you use dropstuff on seperate files it doesnot reduce the size what so ever.
Thanks any way.
danny
New project : Goddess Of Destruction CD available online
Jingles writers
Check out http://www.darlingnikkie.com to discover the sonic world of Darling Nikkie (aka Jade4U)
Offline
#4 2003-01-31 12:23 pm
Re: Downloadable links.
If you're using OS X, gzip comes preinstalled. It's a terminal app. gzip (along with tar) is probably the most popular compression utility on unix type systems.
Here's how I would compress a tiff using the gzip command in the terminal. We'll assume that the image is ~/Pictures/image.tiff
Code:
gzip ~/Pictures/image.tiff
That will replace image.tiff with image.tiff.gz. Just about all file compression utilities should be able to open it with no problem (including StuffIt and WinZip).
Offline
#5 2003-01-31 3:28 pm
Re: Downloadable links.
Thanks.
I hate using dropstuff and getting the message "you most register bla..bla..bla"
I hardly ever use it, and when I do , its sort of a charity work for a friend.
I don't really need it, but I hate using stuff I didn't buy or can use for free legaly.
Good to know about the GZIP thing.
New project : Goddess Of Destruction CD available online
Jingles writers
Check out http://www.darlingnikkie.com to discover the sonic world of Darling Nikkie (aka Jade4U)
Offline
#6 2003-02-07 1:04 am
Re: Downloadable links.
If browsers would conform to the mime-types sent by webservers, then this code in an .htaccess file in the same directory as your TIFFs would force the browser to download insead of using the rules in the browser settings:
ForceType applicaton/octet-stream
However, I tested this with both Mozilla and IE on a PC. Both browsers tried to run the files based on their own internal rules, even though the server told the browser the MIME type should be an application:
% telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD /test/test.mp3 HTTP/1.0
HTTP/1.1 200 OK
Date: Fri, 07 Feb 2003 07:01:09 GMT
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
Last-Modified: Fri, 07 Feb 2003 06:45:15 GMT
ETag: "2530cd-40f945-3e4355fb"
Accept-Ranges: bytes
Content-Length: 4258117
Connection: close
Content-Type: applicaton/octet-stream
Connection closed by foreign host.
Offline

