| Added: February/16/2010 at 5:08pm | IP Logged
|
|
|
I have successfully streamed a large zip file using your example file download code. It works great in itself. My issue is when adding the generated code for Group Access or Level Access I receive the following error:
<!-- Begin ASPProtect Code -->
<!-- Groups with access to this page. ( * My Group * ) -->
<!-- End ASPProtect Code -->
<font face="Arial" size=2>
<p>Response object</font> <font face="Arial" size=2>error 'ASP 0157 : 80004005'</font>
<p>
<font face="Arial" size=2>Buffering On</font>
<p>
<font face="Arial" size=2>/aspprotect/users/stream_download.asp</font> <font face="Arial" size=2>, line 50</font>
<p>
<font face="Arial" size=2>Buffering cannot be turned off once it is already turned on.
</font>
I inserted the group access code I generated as below:
<%@Language="VBScript"%>
<!-- Begin ASPProtect Code -->
<!-- Groups with access to this page. ( * My Group * ) -->
<% GROUPACCESS = "2"%>
<!--#INCLUDE FILE="../check_user_inc.asp"-->
<!-- End ASPProtect Code -->
<%
Dim FilePath,downloaddirectory,filename
Const CHUNK = 2048
(rest of code)
Again If I remove the group access code (leaving only the <!--#INCLUDE FILE="../check_user_inc.asp"-->) line the file downloads like it should. While this solution prompts for a login, to the crafty person entering the download URL directly in the browser address it enables any user with a log on to download the file. Is there some tweak in the Group Access code that can resolve the issue.
Thanks,
Chris
|