[pmwiki-users] Getting a Zap upload form to work
Benoit Dutilleul
benoit.dutilleul at googlemail.com
Fri Mar 9 11:12:03 CST 2007
Hello Dan,
Your suggestion worked. Excellent !
However, I am redirected to the pmwiki upload page even though I specified a
different nextpage. Is there a way I can avoid that ?
Thanks a lot,
Benoit
2007/3/8, The Editor <editor at fast.st>:
>
> Benoit,
>
> I think I may have figured out the upload problem. If you can look in
> the ZAPfiles module down near the bottom and replace this line
>
> if (($ZAParray['uploadfile'] != "") && ($ZAParray['upname'] !=
> ""))
> HandlePostUpload($pagename);
>
> with
>
> if ($ZAParray['upname'] != "") HandlePostUpload($pagename);
>
> it may work. Evidently the actual file is not stored in the
> $ZAParray... So it fails the conditional.
>
> Can anyone suggest a way to tell whether or not the input field
> "uploadfile" actually has a field? Or should I just let PmWiki worry
> about error messages in this regards?
>
> Cheers,
> Dan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070309/e869667a/attachment.html
More information about the pmwiki-users
mailing list