Click here to Skip to main content
15,901,368 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more: (untagged)
Hi,
This is the situation: I have a GoogleSite, and I want people to be able to download off it. I could upload as attachment to their site, but the space would soon run out. So, I want to host the file I am making available for download on a file hosting site, I could add the URL from the hosting site as a link on the GoogleSites so that when people click on it it opens a new window and the download begins, but I don't want the people who download the files to be able to see the download link because then they could just give the download link to their friends instead of coming through me.

The way GoogleSites has it is that if you click on the download button the URL flashes for a second to the download URL and then back to the page URL.

I don't know.

Any suggestions?


thanks
duane
Posted
Updated 24-Apr-11 2:51am
v2
Comments
Ed Nutting 24-Apr-11 8:51am    
Edited to remove the 'sit:' so that people understand what you mean.

1 solution

You could create a page on your site that acts as a midway. The link to the user goes to oyur page and your page then returns the download they wanted to them by retrieving it from the file server and then passing it back to the user. You would have to change the reponse content type and rewrite the stream but that's easy. The disadvantage of this is that it slows down the download as first your servers have to download it and then the user has to download from you.

This is a common problem and most places seem to settle for a direct link to the file server (just look at most of the image urls on facebook) but it is a valid problem. However, if you're worried about friends redistributing and insecure link, most people are more likely just to pass on the actual downoaded file and not the link.

Hope this helps,

Ed
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900