Multiple filenames in Entity form notification mail I have an Entity form with a file upload and need to include multiple filenames in the mail that is sent to the site admin upon form submission.

If I only allow one file to be uploaded through the form the replacement pattern [entity:field-uploadfield:file] works fine to make rules display the filename in the notification mail. But if I enable the users to upload multiple files the replacement pattern does not work anymore – how can I solve this?

Edit:
[entity:field-uppladdarfaltet:0:file] works, but then I'd have to cap the number of files at like 10 and also this doesn't really seem like a "clean" solution. Can I use the :0 :1 :2... format to support an unlimited amount of files?
[UPDATED] Your Rule will need to have some additional actions preceding the Send Mail action.


Add variable (Text). Let's call it - [file_list]
Add Loop that loops over your file field [entity:field-uppladdarfaltet] and produces a List Item. Lets call the list item variable [file_n]
Add action Add Variable (text). Call it [file_item]
Add action Set a Data Value. Data to change will be [file_item]. Value to set will be [file-n:file:name]
Add action Set a Data Value. Data to change will be [file_list]. Value to set will be [file-list:value][file-item:value]&lt;br&gt;. This will add each uploaded file's name to the list with a line break after the name.
Print variable [file_list:value] in the email body.


Here's screenshot: