Value of a field as a prefix of an uploaded file April 11, 2020, 05:04:54 PM Is there a way to include the value of a field as a prefix of an uploaded file? Quote Selected
Re: Value of a field as a prefix of an uploaded file Reply #1 – April 11, 2020, 08:07:29 PM @Ellen currently phprad does not support that configuration, you will have to do that manually. Quote Selected
Re: Value of a field as a prefix of an uploaded file Reply #2 – April 11, 2020, 11:04:28 PM Thanks for your answer. I tried to use a constant like USER_ID and it works but I can't define a "variable" that can be used in the FileNamePrefix option. Can you help me?What I try is: $varx = $modeldata['fieldname'];. Then, use the $varx as the prefix. Quote Selected
Re: Value of a field as a prefix of an uploaded file Reply #3 – April 13, 2020, 01:27:59 PM @Ellen that would not work if it is not available to that field. Why the USER_ID worked was because it was defined as a global constant in config.php. Quote Selected