[pmwiki-users] Error on attachments when using $EnableDirectDownload = 0
Helge Larsen
hal at post4.tele.dk
Thu Jan 4 13:37:03 CST 2007
Hello Pm
>What's the name of the file? Does it have a normal ".xls" file
>extension, or is it named something else?
I have two excel files:
makoni.xls
nijmegen.xls
All my pictures also stop working when setting:
$EnableDirectDownload = 0;
>Have you made any custom settings for $UploadDir, $UploadPrefixFmt,
>$UploadFileFmt, or any of the other $Upload... variables?
This id the lines from my config.php regarding upload:
$EnableUpload = 1;
$UploadMaxSize = 500000;
$DefaultPasswords['upload'] = 'id:@ag2007';
$thisgroup = FmtPageName('$Group', $pagename);
if ($thisgroup == 'Ag2007') $EnableDirectDownload = 0;
if ($thisgroup == 'Sagsbehandler') $EnableDirectDownload = 0;
The last 3 lines is for stopping the direct download only in these
groups, and thereby having the rest of the site working.
I have made a small setup change on the site for you to test it:
http://www.makoni.dk/Main/WikiSandbox
The direct download is disabled for Main.WikiSandbox, and there you
can also see that the pictures fail.
I have not disabled the direct acces to the upload directory, so the
Excel file is accessible as:
http://www.makoni.dk/uploads/Main/makonitest.xls
--
Regards
Helge Larsen
More information about the pmwiki-users
mailing list