need help allowing visitors to download files
-
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?
-
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?
-
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).
-
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
-
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.
-
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?
-
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.
-
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
-
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.
-
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