The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
[Submission Pre-Parser] Rename File - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16) +--- Thread: [Submission Pre-Parser] Rename File (/showthread.php?tid=2345) |
[Submission Pre-Parser] Rename File - jpsaenz - Jan 17th, 2013 Hi! i need to rename the files in my form. These are saved with the same name like the original file, except for those where the filename already exists: FormTools turns it into "1_filename.jpg", etc. i need to incorporate the submission ID in the filename, like this: "submission_id_filename.jpg" I installed the Pre-Parser module but I could not make the right rule - this does not work: Code: if ((isset ($ _POST ['portrait']) &&! empty ($ _POST ["portrait"]))) is obvious: "$portrait" is the fieldname - but i need to manipulate the *filename* (and i don't know how...) Can someone help me with this? Thanks! Juan Pablo |