File Transfer

File Transfer

Post by Mark_Rad.. » Thu, 22 Aug 1996 04:00:00



I am using the Apache server and trying to download .exe or .zip files
that have been uploaded to the server. Whenever I try to download the
files the web browser treats the .exe or .zip as a text file and not a
file to download.
Anyone know how to configure the server to handel file downloads?

 
 
 

File Transfer

Post by Paul Sutto » Fri, 23 Aug 1996 04:00:00



Quote:> I am using the Apache server and trying to download .exe or .zip files
> that have been uploaded to the server. Whenever I try to download the
> files the web browser treats the .exe or .zip as a text file and not a
> file to download.

This is a question of getting the server to assign the correct
mime types to those extensions. zip should be application/zip,
and exe should (probably) by application/octet-stream. These are
installed by default with Apache 1.1 and 1.1.1: presumably
you have an old version of the server.

To add the extensions, edit mime.types (in the conf directory)
and add

   application/zip            zip
   application/octet-stream   exe

(actually, octet-stream will already be there, just add exe to the
end of the line).

Alternatively, use

  AddType application/zip  zip

in a .htaccess file.

Paul
--
Paul Sutton, Technical Director, UK Web --- http://www.ukweb.com/~paul/
Apache Week: Latest news on Apache server... http://www.apacheweek.com/

 
 
 

File Transfer

Post by Steff Watki » Sat, 24 Aug 1996 04:00:00


: I am using the Apache server and trying to download .exe or .zip files
: that have been uploaded to the server. Whenever I try to download the
: files the web browser treats the .exe or .zip as a text file and not a
: file to download.
: Anyone know how to configure the server to handel file downloads?

Hi Mark,

 you need to add a MIME type to your 'mime.types' configuration file, or
an AddType to the resource manager config file.

While I don't use Apache (and so can't give you specific details), I know
that the way to do this with NCSA (which, I  believe, it not that
different from Apache) is

     AddType application/octet-stream   exe zip

This will cause the server to 'handshake' with the browser and tell it
that any file with the filename extension is being sent as an
'octet-stream'.. basically a binary file. The browser should then
recognise that it will need to save this file, rather than display it!

Hope this helps,

Steff

: Steff Watkins, General Computer-type being
: University of Bristol, Clifton, Bristol, AVON, BS8 1TH, UK
:

: X-400   : /G=Steff/S=Watkins/O=Bristol/PRMD=UK.AC/ADMD= /C=GB/  
: Phone: +44 177 287869 (external)   3046 / 7651    (internal)  

 
 
 

File Transfer

Post by Thalia of Marim » Sun, 25 Aug 1996 04:00:00



Quote:

>I am using the Apache server and trying to download .exe or .zip files
>that have been uploaded to the server. Whenever I try to download the
>files the web browser treats the .exe or .zip as a text file and not a
>file to download.
>Anyone know how to configure the server to handel file downloads?

You will have to configure your browser correctly so it will prompt you
to save the file for downloading if it encounters a .zip or .exe type
of files.

On your browser (assuming it's Netscape)... Click on Options, then
General preferences, then click on Helpers tab, then locate the
application/x-zip-copressed file type... make sure that there is no
application launched when this filetype is encountered by the browser,
instead, it should have "Ask User" as the default action, or "Save".
Do the same on the .exe file type.. This should do the trick... :-)

Internet Surfer from Manila, Philippines

 
 
 

File Transfer

Post by Patrick Hawle » Fri, 30 Aug 1996 04:00:00


What Steff says is exactly correct...if you have the correct
permissions, you can add the:

AddType application/octet-stream .exe .zip

line to your srm.conf file, or if you don't have access to write to the
srm.conf file and you're allowed to have your own .htaccess file, create
a .htaccess file in the directory in which the files exist with the
line:

AddType application/octet-stream .exe .zip

and you'll be rockin' steady!

Patrick Hawley

ps- do you (Mark Radtke) have a relative named Lissa that used to live
in Champaign, IL?
--

6610 Delmar Blvd. | www.vintagevinyl.com
  St. Louis, MO   |    ph 314-721-8115
    63130 USA     |   fax 314-721-8746



> : I am using the Apache server and trying to download .exe or .zip files
> : that have been uploaded to the server. Whenever I try to download the
> : files the web browser treats the .exe or .zip as a text file and not a
> : file to download.
> : Anyone know how to configure the server to handel file downloads?
> Hi Mark,
> you need to add a MIME type to your 'mime.types' configuration file, or
> an AddType to the resource manager config file.

> While I don't use Apache (and so can't give you specific details), I know
> that the way to do this with NCSA (which, I  believe, it not that
> different from Apache) is

>      AddType application/octet-stream   exe zip

> This will cause the server to 'handshake' with the browser and tell it
> that any file with the filename extension is being sent as an
> 'octet-stream'.. basically a binary file. The browser should then
> recognise that it will need to save this file, rather than display it!
> Hope this helps,
> Steff
> : Steff Watkins, General Computer-type being
> : University of Bristol, Clifton, Bristol, AVON, BS8 1TH, UK

 
 
 

1. File transfer speed between WinNT w/s and Samba file

I was wondering about this ever since I set up smb.  When I transfer a file
from the smb shared directory to my WinNT 4.0 (sp5) machine it takes about
4 - 5 minutes to transfer a 15 mb file.  However, when I transfer the same
file the other direction, it takes about 15 - 20 seconds.

Why the difference?

Bill

2. gigabyte card problem

3. Linux to Dos file transfer

4. forcing freed memory in C to be returned to the OS

5. UNIX -> MSDOS -> UNIX File transfers

6. CD burner very slow

7. connecting 2 pc for file transfer

8. A Linux user converts back to Windows; was Re: Converting a few Windows users...

9. Scheduled File Transfer

10. DOS/UNIX file transfer - How please?

11. File transfers in background?

12. How to choose between file transfer methods?

13. Help about file transfer between Win98 ans Linux in a LAN