On Mon, 23 Aug 2004, william ross wrote:
No need. On apache, at least, you can change the mime-type in an .htaccess file. Assuming the AllowOverride settings permit it, which they normally would:
AddType application/octet-stream jpg
should do it.
Ok, that's much more clever than I was thinking of, but the Achillies heel is that --
This will mean that jpegs in that directory can't ever be used on pages
-- which would kind of ruin the fun.
There seems to be an easy workaround though: symlink ~/Sites/images (or whatever it is) to something like ~/Sites/downloads (or similar), and then you automatically get a clone of the directory tree.
From there, the image gallery application can be set up to serve things
like
<a href="/downloads/$path_to_image_file"> <img src="/images/$path_to_image_file" alt="$alt" $dimensions /> </a>
and then all people would have to do to save a file would be click it.
This is much better than what I was thinking earlier! :-)
-- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/
np: 'Star/Pointro' by The Roots from 'The Tipping Point'