Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Access uploaded filename in email confirmation

  • stevelegare
  • stevelegare's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
11 years 1 month ago #101136 by stevelegare
I was wondering if I can access the filename of an upload file question in a confirmation email?

I put the {INSERTANS:214687X11X94} tag but it returns an array with all datas (ext, size, filename, etc.).

Can I access only the filename in this array?

Thanks.
The topic has been locked.
More
10 years 11 months ago - 10 years 11 months ago #103339 by dweisser
Replied by dweisser on topic Access uploaded filename in email confirmation
I know this is an older post, but...
Have you tried storing the name of the file once uploaded in a hidden question using Expression manager?
I know the email templates can reference that easily enough. Combining it with the server location of the image file will allow you to present not only the name of the image but the image itself in your email template.

Example:
Code:
<img src="https://www.example.com/survey/upload/surveys/527453/images/{HiddenQuestion.shown}" />

I hope it helps,
David
Last edit: 10 years 11 months ago by DenisChenu. Reason: Replace existing domain by example
The topic has been locked.
  • stevelegare
  • stevelegare's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 10 months ago #103830 by stevelegare
Replied by stevelegare on topic Access uploaded filename in email confirmation
Thanks for your answer.
I will test it soon.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose