What we need to be able to do, is read a file in entirety and write it to the response buffer so the user can download it. This is for security so we can make sure that the user is logged in and has permission to access the file before sending it to them. Doing a redirect() to the file is not an option since that isn't secure enough.

Below is the code I am currently using, it is pretty simple. Does anyone see anything that I can tweak or change that will make this work the way we want? Any help would be appreciated

<%
   if (OK = 1)
      write raw($docPacket)
   end if

Bad idea. Please take a careful look at the documentation for the 'write blob' command. That command was specifically designed to do what you want to do.


Regards,

   Aparajita
   Victory-Heart Productions
   [EMAIL PROTECTED]
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com




Reply via email to