Re: Setting up Apache on OS-X Tiger (not server) - Vectorworks drawings download a .txt?



Dan <daninbrum@xxxxxxxxxxx> wrote:
> I am trying to configure apache to allow Vectorworks drawings to be
> downloaded. I put a file in the appropriate directory and link to them
> (e.g. <A HREF="../../myfiles/mydrawing">Test</A>).

Well, you dont use an extension, which is the most simple method to
tell the server what MIME type to send to the client.
So you get the default MIME type, which is text/plain or something like
that, safari is so clever to add the proper extension ".txt" for this
MIME type-.

You must (!) know the MIME type for Vectorworks drawings, if there is
one, or invent something new, put that into apaches mime.types file
and into safari.

The secrets of MIME...

Most funky aspect of the net next to email.


Bellcore!


H.


http://www.uni-bonn.de/~uzs106/ -- may not work in parts, DOS attacks
etc, but UNI Bonn is ok.
>
> In safari, I hold down Alt and click on the link to download the file.
> Down it comes... ...with a .txt extension. And it trys to open it in
> TextEdit. Arg!
>
> What am I doing wrong? Is it a permissions issue (it doesn't feel like
> one)?
>
> Thanks,
>
>
>
> Dan
>
.



Relevant Pages

  • Re: IE will not open or DL Office ".doc" files, but will ".rtf" fi
    ... > From what I can tell, the status bar displays only the "label" of the link ... But getting back to the task at hand, trying to download a file, ... Document (for extension .doc) has another Action in its list: ... you may be able to detect the MIME type they were downloaded ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: .txt extension added during download
    ... You mentioned Safari, so I'm guessing you use an http:// ... and I use "save the target file" to save the file on my hard disk. ... I've never heard of curl tagging on an arbitrary extension (at ... "download manager" dialog box. ...
    (comp.sys.mac.apps)
  • Re: since 2008 install safari downloads append .dot .pot .xla
    ... Which version of Safari? ... extension. ... The problem is that the Office 2008 installation has changed ... I could download any file ...
    (microsoft.public.mac.office)
  • Re: .txt extension added during download
    ... You mentioned Safari, so I'm guessing you use an http:// ... to the server via FTP. ... I've never heard of curl tagging on an arbitrary extension (at ... the file based on the MIME type. ...
    (comp.sys.mac.apps)
  • Re: IIS downloads files with .bak extension
    ... On IIS6, by default, if you do not have a MIME Type configured for the .bak ... extension, IIS will prevent download of all resources with that extension. ...
    (microsoft.public.inetserver.iis)