I have to save multiple files in a directory and once thats done, zip them up and make it available for download.
I have my files saved in a directory and I am trying to use cfzip to zip them all in a zip directory, however, I am getting error. Here is my code:
<cfset sFilePath = 'D:\temp\zip\test.zip'>
<cfset sSourcePath = 'D:\temp\data\'>
<CFZIP ACTION="zip" FILE="#sFilePath#" SOURCE="#sSourcePath#">
It gives me java.io.FileNotFoundException: ensure file is valid zip file (access denied) error. Do we need to set up special permissions or its my code?