Dear all,<br><br>I got no answer so I publish this one again. I hope you can provide me an answer!<br>Cheers,<br><br>Benoit<br><br><div><span class="gmail_quote">2007/3/24, Benoit Dutilleul &lt;<a href="mailto:benoit.dutilleul@googlemail.com">
benoit.dutilleul@googlemail.com</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;"><span>Dear all,<br><br>I&#39;m working on a ZAP module to enable members of my pmwiki site to 
<span id="st" name="st" class="st">upload</span> a picture associated to their profile. In order to keep the script and further operations as simple as possible, I would like to save the file with the following format:
<br>{$AuthId}_uploadfile<br><br>The current version of my script is:<br></span><span>&gt; (:zapform <span id="st" name="st" class="st">upload</span> key=UploadPhoto:)<br>&gt; File: (:input file uploadfile:)<br>&gt; (:input hidden upname value=&quot;{$AuthId}_{uploadfile}&quot;:)
<br>&gt; (:zap <span id="st" name="st" class="st">upload</span>=&quot;&quot; UploadPhoto:)<br>&gt; (:input submit value=&quot;<span id="st" name="st" class="st">Upload</span>&quot; UploadPhoto:)<br>&gt; (:zapend:)</span>
<br><span><br>However, this does not work because upname is only {$AuthId}_. 
<br>Dan told me that this may be because &quot;</span>the uploadfile field probably does not<br>contain a file name, it actually contains a file&quot;. <br><br>Do you know how I can extract the original file name? <br><span>

<br>Cheers,<br><br>Benoit<br></span>
</blockquote></div><br>