Need help: Returning file or webpage from Restful call?
Hello, I usually lurk around the forum and have never posted.
I find myself in this situation and wondering if someone may be able to help.
We want to send an email to a user with a link to a Restful call, for example
https://file.email-link.com/email/attachment=the-file-name-here.csv
The file name and location are stored in a database and the file is stored externally.
If I look up the file and it has not expired, I want to return a response such that when the browser receives the info it starts downloading the file to the user's computer.
However, if the file has expired, I want to send them to a webpage that tells them the file has expired and if they still need the file to contact support. These are files that expire after 30 days and if they still need to have the file they need to contact our support line.
I am not sure how to do this in ASP.NET and was looking for some general guidance.
THANKS
0 comments:
Post a Comment