afterdigital
Programmer
I've set up my webpage with cffile to upload files
and cfdirectory to display all contents in directory.
Using CFCONTENT i've tried to download the files but can't.
The following code was suggested but it doesn't work;
<cfif IsDefined("url.dlfile"
>
<cfheader name="content-disposition" value="inline; filename=#url.dlfile#">
<cfcontent type="application/zip-compression" file="/home/public/files/#url.dlfile#">
</cfif>
<cfoutput><a href="#cgi.script_name#?dlfile=#name#"> #name#</a>
</cfoutput>
Using this code I get the following error:
*******************************************
Error Diagnostic Information
An error occurred while attempting to open the file.
Unix error number 13 occurred: Permission denied
*******************************************
The directory has all rights and the files being uploaded are given full rights. Is this a rights issue? or code issue?
Any help would be appreciated...
Thanks
Javier
and cfdirectory to display all contents in directory.
Using CFCONTENT i've tried to download the files but can't.
The following code was suggested but it doesn't work;
<cfif IsDefined("url.dlfile"
<cfheader name="content-disposition" value="inline; filename=#url.dlfile#">
<cfcontent type="application/zip-compression" file="/home/public/files/#url.dlfile#">
</cfif>
<cfoutput><a href="#cgi.script_name#?dlfile=#name#"> #name#</a>
</cfoutput>
Using this code I get the following error:
*******************************************
Error Diagnostic Information
An error occurred while attempting to open the file.
Unix error number 13 occurred: Permission denied
*******************************************
The directory has all rights and the files being uploaded are given full rights. Is this a rights issue? or code issue?
Any help would be appreciated...
Thanks
Javier