Score:0

Append info to original filename when uploading file in webform (filename token)

br flag

I'm sure I am missing something really obvious. Drupal 7 + Webform + File (Field) paths.

I am uploading files (jpg, pdf, xls) in a webform and need to append the node NID to the original filename. But I can't seem to find a token for the name of the uploaded file.

Example:

  • node/123
  • Upload file abc.pdf.
  • rename it to '123-abc.pdf'

Tried these but they don't fetch the filename: [node:nid]-[file:original:ffp-name-only-original] and [node:nid]-[file_field:filename]

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.