[pmwiki-users] Extracting the uploadfile name

Benoit Dutilleul benoit.dutilleul at googlemail.com
Mon Mar 26 12:39:53 CDT 2007


Dear all,

I got no answer so I publish this one again. I hope you can provide me an
answer!
Cheers,

Benoit

2007/3/24, Benoit Dutilleul <benoit.dutilleul at googlemail.com>:
>
> Dear all,
>
> I'm working on a ZAP module to enable members of my pmwiki site to uploada 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:
> {$AuthId}_uploadfile
>
> The current version of my script is:
> > (:zapform upload key=UploadPhoto:)
> > File: (:input file uploadfile:)
> > (:input hidden upname value="{$AuthId}_{uploadfile}":)
> > (:zap upload="" UploadPhoto:)
> > (:input submit value="Upload" UploadPhoto:)
> > (:zapend:)
>
> However, this does not work because upname is only {$AuthId}_.
> Dan told me that this may be because "the uploadfile field probably does
> not
> contain a file name, it actually contains a file".
>
> Do you know how I can extract the original file name?
>
> Cheers,
>
> Benoit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070326/e067eb03/attachment.html 


More information about the pmwiki-users mailing list