|
-
Feb 26th, 2009, 02:34 AM
#1
[2005] Downloading file off another site
Hello,
I am currently making few changes in the website for an organization where they have some files on another site, on the same server, and in the page, they have sort of hard-coded the link. I mean, the link looks like:
Code:
http://domain/folder/subfolder/file.xls
.
It works like a normal link.
Now I have to change as per these specifications:
1) check which user is downloading which file.
2) To publish the website on another server, this time they are willing to keep the files in separate folder (outside the actual website).
3) Implementing Forms Authentication.
well the list is too long.
The approach I am taking is to take user to another page upon clicking of link, authenticate the user there, make a log, and download the file.
The problem is downloading part. I can't get it working. I tried with Response.WriteFile(), TransmitFile(), WebClient.DownloadFile() (well this works, but this will save the file to some specific location and user won't get the prompt. So I am trying to avoid this). If I specify the physical location of the file, then it works, but absolute URI doesn't.
How can it be done? I open for other suggestions too.
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|