<span class="q">Dear all,<br><br>I'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">> (:zapform upload key=UploadPhoto:)<br>> File: (:input file uploadfile:)<br>> (:input hidden upname value="{$AuthId}_{uploadfile}":)
<br>> (:zap upload="" UploadPhoto:)<br>> (:input submit value="Upload" UploadPhoto:)<br>> (: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 "</span>the uploadfile field probably does not<br>contain a file name, it actually contains a file". <br><br>Do you know how I can extract the original file name? <br><span class="q">
<br>Cheers,<br><br>Benoit<br></span>