Jan 16th, 2013, 2:35 PM
Hi!
i have a form with 4 file-upload fields, and this works fine, but:
When the file name already exists, FormTools makes the following: "1_ [filename.jpg]", this is fine, but I need the names to be provided as follows: [submission_id]_[filename.jpg]... and ideally, all characters are written in lowercase.
And this: always, not just when the names are identical. Is this possible?
I saw that in the "/gobal/code/actions.php" there is a variable "$ upload_tmp_file_prefix" but I want to change that; guess is to put the "1_" 2_ ", etc..
Can i incorporate this variable "submission_id" to the file name? Can you help me?
Thanks a lot! (and sorry for my poor english and the google-translation!)
Juan Pablo
My FormTools Version: 2.2.5., premium
i have a form with 4 file-upload fields, and this works fine, but:
When the file name already exists, FormTools makes the following: "1_ [filename.jpg]", this is fine, but I need the names to be provided as follows: [submission_id]_[filename.jpg]... and ideally, all characters are written in lowercase.
And this: always, not just when the names are identical. Is this possible?
I saw that in the "/gobal/code/actions.php" there is a variable "$ upload_tmp_file_prefix" but I want to change that; guess is to put the "1_" 2_ ", etc..
Can i incorporate this variable "submission_id" to the file name? Can you help me?
Thanks a lot! (and sorry for my poor english and the google-translation!)
Juan Pablo
My FormTools Version: 2.2.5., premium