SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Member
    Join Date
    Aug 1999
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Forgive the simplicity of this question, but it suddenly dawned on me that despite a couple of years of Web designing, I have never placed a file on any of my sites for downloading. I want to place an EXCEL file on the site and make it available. How do I do it?

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2000
    Location
    New York, USA
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your visitors can simple right click on the link to the file and select "save file as" and that would d/l it to their hard drive.

    However, I would HIGHLY RECOMMEND you compress the files using winzip (or other compression utility).

  3. #3
    SitePoint Member
    Join Date
    Aug 1999
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, I would certainly compress the file. Is there a way, though, to make the file automatically begin downloading when the link is clicked?

  4. #4
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Simply link directly to the file like you would for a thumbnail image. <a href="/mydirectory/myfile.xls">My excel file</a>

    A window will pop up asking if they want to save it to a disk or open from location. If you are using Excel 2000, you may want two versions available, 97 and 2000.

    [This message has been edited by westmich (edited March 28, 2000).]

  5. #5
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Office Documents will not just download if the user is using IE and has a version of Office installed. Windows comes with this wonderful technology called OLE (also known as DDE, DAO, ADO, ActiveX and COM in its various incarnations). With that IE will look to see if the document type is registered and load the appropriate container application right within the browser window. The menus and toolbars change and your now in the container application.

    The easiest way to make a file downloadable is to compress it using one of the many ubiquitous ZIP file programs and placing a link to it on your page. Placing it in an FTP directory also makes a file instantly downloadable.

    There is no trick to making a file downloadable. All the HTTP protocol knows how to do is to download files or request files to download and have them interpreted by the user agent. If the user agent has a viewer application installed they see the graphics, HTML, flash movie or whatever. If not they get a lump of bits and bytes on their harddrive taking up space. The trick is using a file type the user agent does not have a pre-installed viewer for i.e. A zip file.

    ------------------
    Wayne Luke
    WR Moderator
    Internet Media Provider

  6. #6
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    directories set up for FTP are served using a different daemon than HTTP files. FTP stands for File Transfer Protocol. Ask your IPP if they can set up an anonymous FTP directory for you. Most will.

    ------------------
    Wayne Luke
    WR Moderator
    Internet Media Provider

  7. #7
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wluke is absoultly right, but...
    If you are making an Excel file downloadable the end-user would need to have Excel, right? If the end-user has Excel and IE 5 then so much the better. They can begin to use the program immediatly or just save it. If they don't have IE 5, then they can just save it to a designated folder.
    I agree, though, that it would be convianent to offer the a zip version as well.

    IMHO,
    Westmich

  8. #8
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    New York
    Posts
    307
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote/font><HR>Placing it in an FTP directory also makes a file instantly downloadable.
    <HR></BLOCKQUOTE>How is an "FTP directory" different from any other directory one may set up. You mean creating a directory entitled "downloads" isn't the best?

  9. #9
    SitePoint Enthusiast
    Join Date
    Mar 2000
    Location
    Pawtucket, Rhode Island, USA
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I seriously don't know about FTP's because i cant get them to function properly, so i am always forced to mirror files.. =/


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •