<div style="direction: ltr;"><span class="q">Dear all,<br><br>I forward you more info and test results about this issue. If anyone has an idea, please help!<br>Cheers,<br><br>Benoit<br><br>On 3/6/07, Benoît DUTILLEUL <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:benoit.dutilleul@googlemail.com">
benoit.dutilleul@googlemail.com</a>> wrote:<br>> Hello Dan,<br>><br>> I've changed the line you told me to change. Here is what I get:<br>> Form submitted. Missing fields required for upload feature.Hope
this helps.<br><br></span></div>That indicates ZAP could not find either upname or uploadfile. No<br>idea why, as both seem to be in the form. Perhaps you could repost to<br>the list with the new info and see if someone can suggest why your
<br>form is failing this conditional:<br><br>if (($ZAParray['uploadfile'] != "") && ($ZAParray['upname'] != ""))<br> HandlePostUpload($pagename);<br><br>---------- Forwarded message ----------
<br><span class="gmail_quote">From: <b class="gmail_sendername">The Editor</b> <<a href="mailto:editor@fast.st">editor@fast.st</a>><br>Date: 6 mars 2007 23:17<br>Subject: Re: [pmwiki-users] Getting a Zap upload form to work
<br>To: Benoît DUTILLEUL <<a href="mailto:benoit.dutilleul@googlemail.com">benoit.dutilleul@googlemail.com</a>><br>Cc: Patrick Michaud <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>><br><br></span>
Here's the HTML (below) in case anyone spots a problem...<br><br>Hmmm, I also think I see the problem. The word "upload" in the markup<br>is supposed to add the enctype value to the form element. It's not
<br>there, so PmWiki can't do the upload. Let me check and see what's<br>happening...<br><br>Ok, evidently, just putting a word like upload in the form is not<br>caught by the parseargs function. If you change your form line to
<br><br>(:zapform upload='' name=UploadPhoto:)<br><br>It will trigger the function and add the command you need to the form<br>element. Try this and see if it doesn't work. If it does, I'll<br>either have to find a way to rewrite the script or rewrite the docs...
<br> But let's get it working first!<br><br>Cheers,<br>Dan<br><br><br><form name="UploadPhoto"<br>action="<a href="http://etudier-en-france.org/pmwiki/fields/RnD/index.php?n=Account.TestUploadPhoto">
http://etudier-en-france.org/pmwiki/fields/RnD/index.php?n=Account.TestUploadPhoto</a>"<br>method="post" target="_blank" onsubmit="return<br>window.confirm(&quot;You are submitting information to an external
<br>page.\nAre you sure?&quot;);"><input type="hidden" name="PHPSESSID"<br>value="235a89e86438576bf41cca29e42dc098"><input type="hidden"<br>name="action" value="zap"><input type="hidden" name="ZAPkey"
<br>value="UploadPhoto"><br><table width="600px" bgcolor="#fff7bd"><tr><td width="20px" valign="top"><br></td><td valign="top">Photo:
<br></td></tr><tr><td valign="top"><br></td><td colspan="2" valign="top"><input type="file"<br>name="uploadfile"><input type="hidden" name="upname" value="
test.jpg"><br></td></tr><tr><td height="10px" valign="top"><br></td></tr><tr><td valign="top"><br></td><td colspan="2" valign="top"><input type="submit"
<br>name="UploadPhoto" value="Terminer l&#39;enregistrement"><br></td></tr><tr><td height="20px" valign="top"><br></td></tr></table></form>
<br>