Need Web File Downloading Method
I've been searching for an easy way to allow a client to download a file from my web site. Haven't found anything that helps. I'd like to code a download button in my html (using form post code perhaps) and then let the magic happen. I assume I need to code something that resides on my Microsoft hosted site that somehow pushes the file back to my client.
My hosting service does not allow more than 1 ftp client at this time, so I can't just make an ftp account/folder to make it all simple.
Any help understanding the process would be much appreciated. At this point, I don't even know where to begin, including the type of code (language) I need to use at the server end. I use CoffeeCup as my html editor.
Why not just put a link to it - then the user can click on the link and save the file.
<a href="filefordownload.pdf">Download my awesome PDF!</a>
Something like this: http://www.ossweb.com/article-16.html
would make it difficult I suppose. Can't you make a "public folder" that doesn't require username/password (I guess it is also called "anonymous login"??). In this "public folder", you place whatever 'downloadable file' you wish to referance via URL in your HTML document.
Originally Posted by imagecoder
This should let anyone that wants to 'download my awesome *PDF file here' download the file... (no login required, as it is "public")..
I build for: Firefox and tweak for IE
I tried that and it didn't work for me. My files are images that I'm selling to a client. When I try using your <a> method, the browser tries to display the image. I did see in a Client Side thread that referring to a zipped file works. I tested that and was able download an image. The down side is that my client has to know how to unzip the file after or during the download. Anyway, that's what I'm going with for this client so I can get the images delivered.
I still prefer a simpler solution for my clients. I think that means having a server side program of some sorts.
I wrote a reply to you and clicked on the post button. While I was writing the reply, I was automatically logged off. My reply was rejected. Extemely irritating!!!
Anyway, like I indicated in my reply to eCat, I used the zipped file method mentioned in the article you provided a link to. Thanks for the link. It validated that method.
The files I'm trying to download are images that a client has purchased. Thus, I don't want anybody else to get to them. Right now, I've created a directory on my website that is not linked to from anywhere. I put an exclusion for it in my robots.txt file and included a meta exclusion for it in the index.html file in that directory. I'm hoping that those 2 things will keep the bots from listing it. I'll provide my client with a link to the index file so he can download his images. Later, I'll delete the directory from my website so nobody else can get the files.
I don't like this method and would like something better and more secure. I can't count on having computer-savy clients and need something simple for them to use. I figure that means I need to write some kind of server side program that will push the requested file down to my client. Although I know and understand html, I'm not yet savy about client/server type operations and don't even know where to start looking.
+1 to imagecoder!! I too hate getting kicked off this forum on a regular basis... just happened to me again!
Anyway - you're right... if the file you want the user to download is an image file, the link method won't work. So I agree with your zip solution. I think that zip technology has been around long enough that the majority of users will know what to do with it. You can also put instructions on your download page (or in your email that has the link) for the end user.
In some cases you may also be able to email them the exact url of the image so they can grab it right off your site.
I think the zip method is working for me with this client at least. I haven't heard back since I sent directions on how to get the files.
I've been surprised in the past how many people on the web don't understand it at all and are afraid to experiment. I'd like to keep things simple for my clients, but maybe this is as good as it gets right now.
Thanks - imagecoder
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)