Hello Dan,<br><br>Your suggestion worked. Excellent ! <br><br>However, I am redirected to the pmwiki upload page even though I specified a different nextpage. Is there a way I can avoid that ?<br><br>Thanks a lot,<br><br>Benoit
<br><br><br><br><div><span class="gmail_quote">2007/3/8, The Editor &lt;<a href="mailto:editor@fast.st">editor@fast.st</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Benoit,<br><br>I think I may have figured out the upload problem.&nbsp;&nbsp;If you can look in<br>the ZAPfiles module down near the bottom and replace this line<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (($ZAParray[&#39;uploadfile&#39;] != &quot;&quot;) &amp;&amp; ($ZAParray[&#39;upname&#39;] != &quot;&quot;))
<br>HandlePostUpload($pagename);<br><br>with<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($ZAParray[&#39;upname&#39;] != &quot;&quot;) HandlePostUpload($pagename);<br><br>it may work.&nbsp;&nbsp;Evidently the actual file is not stored in the<br>$ZAParray...&nbsp;&nbsp;So it fails the conditional.
<br><br>Can anyone suggest a way to tell whether or not the input field<br>&quot;uploadfile&quot; actually has a field?&nbsp;&nbsp;Or should I just let PmWiki worry<br>about error messages in this regards?<br><br>Cheers,<br>Dan<br>
</blockquote></div><br>