Welcome to the LimeSurvey Community Forum

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

file upload to email templates

More
7 years 10 months ago #159492 by GanjalfTheGreen
Hey folks,

I'm not quite shure if this topic is legit, because I'm having the exactly same issue being described in this three years old bug: bugs.limesurvey.org/view.php?id=8812 .
What I'm trying to do is to attach a file to an email template. I can upload the file (.ics calendar file, 2kb), attach it to the mail (as in the screenshot). But upon hitting save there's no file attached after the page reload.

But running version 2.67.3+170728 I think this might be fixed already so I'm not shure If I'm doing something wrong.

Things i tried already:
  • File with space in name
  • File without space in name
  • Adding attachment to new/other surveys
  • different filetypes
More
7 years 10 months ago - 7 years 10 months ago #159503 by GanjalfTheGreen
Update: we punched the adress directly into the surveys_languagesettings db, and after that the file correctly showed up when reloading the email template editor. After saving it's gone again.
My guess is that the Upload doesn't reach the database correctly. This is how, in my case, the database entry looked before changing it:
Code:
a:1:{s:18:"admin_notification";a:0:{}}
and this is how it should have looked:
Code:
a:1:{s:18:"admin_notification";a:1:{i:0;a:2:{s:3:"url";s:60:"<URL HERE>";s:9:"relevance";i:1;}}}
Any guesses?
Last edit: 7 years 10 months ago by GanjalfTheGreen. Reason: added database name
The topic has been locked.
More
7 years 10 months ago #159554 by DenisChenu
Maybe try with the last version (for example on demo of limesurvey) and if it happen too : report the bug ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose