Welcome to the LimeSurvey Community Forum

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

Are we able to view uploaded files within the notification email?

  • DOwen
  • DOwen's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #122947 by DOwen
Aha this helped! This also allowed me to make some formatting changes. Now its a case of formatting the email to our taste. It's a shame I can't set it to only show the questions that were answered.

I still can't get the attached file to work though, the link is there but I think I may have the installation path wrong.
The topic has been locked.
  • DOwen
  • DOwen's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago - 8 years 9 months ago #122964 by DOwen
Also, I have the same file link script (the one you gave) within the HTML 3 times as there are 3 questions (each one only appearing once at a time), and for some reason, the third script fails to work and just displays:

File uploaded: {stristr(str_replace('name":"', '', stristr(Upload1, 'name":"')), '"', 'true')}

I'm not having much luck!

EDIT: And another issue! The multiple choice check box answers are failing to show and end up displaying the curly bracket code inside a yellow box with red border.
Last edit: 8 years 9 months ago by DOwen.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #122974 by DenisChenu
For complex report in last email, i always use a hidden question (show text question) and for email content:

{QUESTION.question}

It work good and more easily (and with full index you can test without sending email).

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • DOwen
  • DOwen's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #122995 by DOwen
Hi Denis,

Thanks for your reply. Sounds good although I'm not quite sure what you mean and how this works?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #122998 by tpartner
I think what Denis means is that he creates the "report" content for the email in a hidden (by CSS or JS) text-display question and then simply pipes that question into the email template. This may give some more flexibility with Expression Manager when creating the "report".

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DOwen
  • DOwen's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #122999 by DOwen
Thanks for replying! I think I'd probably need a walkthrough with this one if I was to pursue this as it's confused me a little.

I'm finding it difficult trying to imagine how I'd collect the report data into the question?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #123003 by DenisChenu

tpartner wrote: I think what Denis means is that he creates the "report" content for the email in a hidden (by CSS or JS) text-display question and then simply pipes that question into the email template. This may give some more flexibility with Expression Manager when creating the "report".

Hi,

It's not for fexilibility, it's for quick control ;) . And i directly use manual.limesurvey.org/QS:Hidden when it's OK.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • DOwen
  • DOwen's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #123007 by DOwen
Still struggling with this idea, I think I'm having a blank moment here!

Also, just figured out I had the root folder wrong so we have corrected that and made sure the permissions are all A-OK. However we've noticed that all uploaded files are being stored as random file names without any file extension, and simply stored as format 'File'.
The topic has been locked.
  • DOwen
  • DOwen's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 8 months ago #123041 by DOwen
So at the moment, I have an email working alright, it could be better, but it works, except for the upload file issue where the files are automatically renamed.

Is there a way to stop it renaming the files or similar?


Thanks!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 8 months ago #123043 by DenisChenu
Hi,

We need to rename the file :
- 1st : security issue (and actual solution is not good enough)
- 2nd : else another user can replace any file using same filename.

But the directlink with the fu_XXXX giv file access if user are connected to admin.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • DOwen
  • DOwen's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 8 months ago #123046 by DOwen
Hi Denis,

Thanks for your reply! However I don't quite understand what you mean...
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 8 months ago #123076 by DenisChenu
1st : if we don't rename file, it's easy to find the URL, for example : ./surveys/files/curriculum_vitae.pdf can be found easily by any web user.
2nd: Iif we don't rename file : first user send CV.pdf, second user send CV.pdf, third user send CV.pdf .... we have only one file.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose