1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Renaming filename of uploading document

Discussion in 'Community' started by dimoss, Aug 13, 2019.

  1. dimoss

    dimoss Well-Known Member

    Level: Community
    Hi,

    It is known that we can change the filename of an uploading document using the file upload element through the Obfuscate Filename YES/NO feature.

    My question is if it is possible to change the filename using the data from another field of the form. For example using the Full_Name field adding also obfuscate letters.

    Thanks.
     
  2. dimoss

    dimoss Well-Known Member

    Level: Community
    Found. I should check the existing features before i post :)
    Just in case someone else interested is:
    PHP:
    $name = $formModel->getElementData('table_name___element_name');
    {return $name."_".$filename;}
     
  3. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Presumably you put that in the "Rename file" option, or whatever it's called?

    -- hugh
     
  4. dimoss

    dimoss Well-Known Member

    Level: Community
    Hi Hugh

    Yes, I put that in the 'Rename code' section.
     

Share This Page