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 <<a href="mailto:benoit.dutilleul@googlemail.com">
benoit.dutilleul@googlemail.com</a>>:</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'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>> (:zapform <span id="st" name="st" class="st">upload</span> key=UploadPhoto:)<br>> File: (:input file uploadfile:)<br>> (:input hidden upname value="{$AuthId}_{uploadfile}":)
<br>> (:zap <span id="st" name="st" class="st">upload</span>="" UploadPhoto:)<br>> (:input submit value="<span id="st" name="st" class="st">Upload</span>" UploadPhoto:)<br>> (:zapend:)</span>
<br><span><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>
<br>Cheers,<br><br>Benoit<br></span>
</blockquote></div><br>