<span class="q">Dear all,<br><br>I&#39;m working on a ZAP module to enable members of my pmwiki site to upload 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 class="q">&gt; (:zapform upload key=UploadPhoto:)<br>&gt; File: (:input file uploadfile:)<br>&gt; (:input hidden upname value=&quot;{$AuthId}_{uploadfile}&quot;:)
<br>&gt; (:zap upload=&quot;&quot; UploadPhoto:)<br>&gt; (:input submit value=&quot;Upload&quot; UploadPhoto:)<br>&gt; (:zapend:)</span><br><span class="q"><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 class="q">
<br>Cheers,<br><br>Benoit<br></span>