|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Limit File Downloads
I am trying to limit the downloading of a file to one download per user. Initially I display a download link and when they click the link the file should begin to download. Once download is complete I want to disable the link. So far my code is....
***code for download.cfm*** <cfif Url.Mode eq "D"> <cfheader name="Content-Disposition" value="attachment; filename=#Trim(strFileName)#"> <cfcontent type = "image/gif" file = "#Trim(strFullFilePath)#" deleteFile = "No"> </cfif> <a href = "Download.cfm?Mode=D&Id=3">Download Image</a> Thanks for any help in advance. |
|
#2
|
|||
|
|||
|
Unless you have some kind of system where the user has to log in before doing the download I don't see how you're going to stop them from downloading it again in a reliable way.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Limit File Downloads |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|