Adding timestamp to an uploaded document

I am trying to add timestamp to the file name is this possible? Here's what i am using in the interface to ingest the time stamp on the uploaded document but it doesn't seem to be working.

a!fileUploadField(
      label: "Upload the pdf",
      labelPosition: "ABOVE",
      target: cons!FolderLocation,
      filenames: substitute(fv!file.name,".",concat(" ",now(),".")),
      value: ri!file,
      saveInto: ri!file,
      validations: {}

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data