[pmwiki-users] fox write ptv value when file upload

edwin marte edwin.marte at leidba.com
Tue Mar 24 13:33:05 CDT 2009


The code below  works for me, I don't know if for you is ok but hope can
help.
I can get file name and other parameters when submitting and the write the
PTV when file is uploaded.

Regards,
Edwin


(:input file upfile size=45:)

(:input submit post "Upload" :)

(:input hidden File_Name  {$$upfile_name}:)
(:input hidden  File_Size  {$$upfile_size} :)

(:foxptv ptvfields=File_Name,File_Size   ptvtarget={$FullPage}:)



On Tue, Mar 24, 2009 at 1:17 PM, noskule <noskule at gmx.net> wrote:

> hi list, hans
>
> Is there a way to write a ptv if a user uploads a file via fox upload
> field? Something like
>
> if {$$upfile_name} != "" defaultpicture={$$upfile_name}
>
> If no upload takes place , the ptv "defaultpicture" should ne be
> overwritten.
>
> Thanks for any hins
> nos
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090324/93750d93/attachment.html 


More information about the pmwiki-users mailing list