I am uploading my files to a sftp server, which users should be able to download later. Now how they are going to download is, I am showing the files in a grid, with their Names (saved in DB) as LinkButtons.
On the linkbuttons click I am going to download the file from sftp server to a local folder on the server and then, here I directly want to give the file to the user. The link button doesnt have a hard link.
Also, there is no restriction of filetype or size. Please can you suggest anything that could help?
To solve the second problem (sending the locally downloaded file), you basically send the file back to the client as the response to the click event:
From How to send a file to a client so a Download dialog will open?: