This question about Using an extension: Asked

"Don't Save zip file"

I'm running Foswiki-1.0.10 on Windows Server 2003R2, IIS 6.0, and using ActiveState Perl. I have the RCSlite option selected.

I installed and got the BatchUploadPlugin working, but I get an error message from ...

Error saving topic

During save of RSLP/IT/Issues.Item26 an error was found by the version control system. Please notify your RSLPwiki administrator.

Do not save zip file!

Go back in your browser and save your changes locally.

BatchUploadPlugin extracts the zip and does the attachments just fine. Just throws that error. I imagine it has something to do with the rcslite.

Besides that, a few comments... the BatchUploadPlugin page didn't make it clear to me that I had to Set BATCHUPLOADPLUGIN_ENABLED = 1 for it to work. It's kind of obvious in retrospect, but it threw me for a loop for a bit.

In the section about template modifications, I can't remember what the gap was, but what I found in the tmpl files didn't match what the BUP page showed.

Also, I wanted to be able to switch it on in the webs and not have the attach page show the option if it wasn't enabled in that web. And, I didn't want the check enabled by default. What I ended up with:

attach.pattern.tmpl: (at line 59, after the similar line for hidefile)

%IF{"$BATCHUPLOADPLUGIN_ENABLED > 0" then="<input type=\"checkbox\" class=\"foswikiCheckbox\" id=\"batchupload\"  name=\"batchupload\" %BATCHUPLOADCHECKBOX% /><label for=\"batchupload\">%MAKETEXT{"Batch upload for zip file"}%</label> <span class=\"foswikiGrayText\">%MAKETEXT{"Extracts and uploads individual file in zip archive."}%</span>"}%

attach.tmpl: (replacing line 30)

%TMPL:DEF{"properties"}%%TMPL:P{"createlink"}%%TMPL:P{"hidefile"}%%IF{$BATCHUPLOADPLUGIN_ENABLED > 0 then "%TMPL:P{"zipbatch"}%"}%%TMPL:END%

(at line 40, after block that DEF'd hidefile)
  <td align="right">
   Batch Upload:
   <input type="checkbox" name="batchupload" %BATCHUPLOADCHECKBOX% />Extract Files and Attach them to the Topic

QuestionForm edit

Subject Using an extension
Extension BatchUploadPlugin
Version Foswiki 1.0.10
Status Asked
Topic revision: r2 - 03 Oct 2010, WillNorris - This page was cached on 03 Jun 2020 - 23:36.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy