need help allowing visitors to download files

  1. #1
    meilani is offline Newbie

    need help allowing visitors to download files

    Need help -- Been a long time since I've done any html and I can't remember for the life of me if this is possible or not...

    I want to allow visitors to download right from the browswer from my web site with username and password that I set up for them.

    How do I do this?


  2. #2
    D-A-L is offline D-A-L Administrator
    Hey

    So you want a downloads page which is protected by a user name and password login? So when a user logs in they get a list of files available to download?

  3. #3
    meilani is offline Newbie
    Yes,

    I would like to use my personal web space from my ISP to store files for customers to download (I don't want or need to have my own domain), but I don't want to give them MY logon info to download them. I'd rather create a simple web page that allows them to get the protected files (if possible).

  4. #4
    D-A-L is offline D-A-L Administrator
    Ok no probs, you can use a simple bit of javascript on the pages - try here - http://www.pageresource.com/jscript/jpass.htm

    Post i fyou need more help with it

  5. #5
    meilani is offline Newbie
    Thank you for the link, but doesn't this just create a protected area?

    How would a user "download" a file from a browser? I want a user to click on a file name (link, icon, or whatever) and be asked where the file should be saved... BTW - These files are not executable files.

    Sorry if I wasn't clear on what I really needed earlier.
    Last edited by meilani; 22-06-2005 at 09:25 PM.

  6. #6
    jnadel is offline Full Member
    If you just want the user to be able to download, simply create a hyperlink to the file.

    For example, if I wanted them to download a file called test.zip located at google.com/zips. I would make a link to http://google.com/zips/test.zip then when they click it, it will download.

    Sorry if I was too basic, are you talking about downloding images and stuff?

  7. #7
    meilani is offline Newbie
    Is that all I have to do??? Boy, I feel silly now asking the question...
    I just assumed that the file would automatically open or execute...

    Thanks for your help.

  8. #8
    jnadel is offline Full Member
    Heh. No problem at all. However, this will only work for certain types of files. For example, if you wanted your users to be able to download an image or sound, it would be different. You'd have to create a hyperlink to it and then instruct your users to right click on the link and click Save Target As and thne place it in the directory/folder of their choice.

    Glad To Help
    -Jeff

  9. #9
    meilani is offline Newbie
    Actually, I spoke too soon.
    I tried it as you first suggested but it lists the files instead of giving me the option to download.

    Here is what I have so far:
    I have a VERY basic web page. Right now, I have a link to the directory that will contain the available files for download. If the user clicks the link, it brings them to a Windows Explorer window and lists the directory that way.

    Not quite what I want... I want the user to be able to choose a file (from a list or a link, or whatever) and download a compressed file (.zip). Right now, if they click on the .zip file it opens up the contents in the Win Explorer window.

  10. #10
    jnadel is offline Full Member
    Tackle the Web with $5.99 .COM's from Go Daddy!
    Are the files yours or are they from another site? If they're yours, what program did you use to zip/compress them? Have you tested the downloading process on more than one computer? What zip program do you have on your primary computer?


    -Jeff

+ Reply to Thread
Page 1 of 2 1 2 LastLast