<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 &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:benoit.dutilleul@googlemail.com">
benoit.dutilleul@googlemail.com</a>&gt; wrote:<br>&gt; Hello Dan,<br>&gt;<br>&gt; I&#39;ve changed the line you told me to change. Here is what I get:<br>&gt; 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. &nbsp;No<br>idea why, as both seem to be in the form. &nbsp;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[&#39;uploadfile&#39;] != &quot;&quot;) &amp;&amp; ($ZAParray[&#39;upname&#39;] != &quot;&quot;))<br> &nbsp; &nbsp; &nbsp; HandlePostUpload($pagename);<br><br>---------- Forwarded message ----------
<br><span class="gmail_quote">From: <b class="gmail_sendername">The Editor</b> &lt;<a href="mailto:editor@fast.st">editor@fast.st</a>&gt;<br>Date: 6 mars 2007 23:17<br>Subject: Re: [pmwiki-users] Getting a Zap upload form to work
<br>To: Benoît DUTILLEUL &lt;<a href="mailto:benoit.dutilleul@googlemail.com">benoit.dutilleul@googlemail.com</a>&gt;<br>Cc: Patrick Michaud &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt;<br><br></span>
Here&#39;s the HTML (below) in case anyone spots a problem...<br><br>Hmmm, I also think I see the problem.&nbsp;&nbsp;The word &quot;upload&quot; in the markup<br>is supposed to add the enctype value to the form element.&nbsp;&nbsp;It&#39;s not
<br>there, so PmWiki can&#39;t do the upload.&nbsp;&nbsp;Let me check and see what&#39;s<br>happening...<br><br>Ok, evidently, just putting a word like upload in the form is not<br>caught by the parseargs function.&nbsp;&nbsp;If you change your form line to
<br><br>(:zapform upload=&#39;&#39; name=UploadPhoto:)<br><br>It will trigger the function and add the command you need to the form<br>element.&nbsp;&nbsp;Try this and see if it doesn&#39;t work.&nbsp;&nbsp;If it does, I&#39;ll<br>either have to find a way to rewrite the script or rewrite the docs...
<br> But let&#39;s get it working first!<br><br>Cheers,<br>Dan<br><br><br>&lt;form name=&quot;UploadPhoto&quot;<br>action=&quot;<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>&quot;<br>method=&quot;post&quot; target=&quot;_blank&quot; onsubmit=&quot;return<br>window.confirm(&amp;quot;You are submitting information to an external
<br>page.\nAre you sure?&amp;quot;);&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;PHPSESSID&quot;<br>value=&quot;235a89e86438576bf41cca29e42dc098&quot;&gt;&lt;input type=&quot;hidden&quot;<br>name=&quot;action&quot; value=&quot;zap&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;ZAPkey&quot;
<br>value=&quot;UploadPhoto&quot;&gt;<br>&lt;table width=&quot;600px&quot; bgcolor=&quot;#fff7bd&quot;&gt;&lt;tr&gt;&lt;td width=&quot;20px&quot; valign=&quot;top&quot;&gt;<br>&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Photo:
<br>&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;<br>&lt;/td&gt;&lt;td colspan=&quot;2&quot; valign=&quot;top&quot;&gt;&lt;input type=&quot;file&quot;<br>name=&quot;uploadfile&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;upname&quot; value=&quot;
test.jpg&quot;&gt;<br>&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height=&quot;10px&quot; valign=&quot;top&quot;&gt;<br>&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;<br>&lt;/td&gt;&lt;td colspan=&quot;2&quot; valign=&quot;top&quot;&gt;&lt;input type=&quot;submit&quot;
<br>name=&quot;UploadPhoto&quot; value=&quot;Terminer l&amp;#39;enregistrement&quot;&gt;<br>&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height=&quot;20px&quot; valign=&quot;top&quot;&gt;<br>&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/form&gt;
<br>