Welcome to the LimeSurvey Community Forum

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

File upload, zip all files and add download link to email notification

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago #230473 by Armitage2k
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.3.23+220705
Own server or LimeSurvey hosting: self-hosted
Survey theme/template: custom - fruity based
==================

I have a survey that pretty much serves as self-audit checklist and requires participants to take pictures and upload them as part of the audit. The Admin Notification email goes out to a group of people of which not everyone has an LS account, meaning that they are unable to login and see the attachments via the LS panel.
What I would like to achieve is to have the questionnaire results displayed (done via "{ANSWERTABLE}") and below that provide a link to the uploaded images for easy download. Best case scenario would be that all uploaded files are zipped already.

Is this possible? How would I go about triggering custom expressions after the survey is submitted?

Thanks

 

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago #230567 by Armitage2k
Wow, 3 days and nobody has any advice? Have I finally found something that Limesurvey cannot do? :D

Appreciate any insights whatsoever, this is the only thing from stopping me going full-blown LS at my workplace. Any hint on how to make this happen would be appreciated.

Thanks!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #230569 by Joffm
Wow, 3 days and you did not search the forum to find the thread how to display uploaded files. 

Search for it.
You may be able to extend and adapt to your desire.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago #230571 by Armitage2k
Just gotta love such pointless replies. Thanks.

I do search before I post, but if I all I get is a search result of 3 posts, of which one is my own and the other related to a multi-factor problem, then I guess it's time to start a new thread and ask the community for help.

And no, I am not looking for ways to display uploaded files, I am looking for ways to manipulate the email notification template after submission, run a custom zip server command on a dynamic folder location, likely mess with CHMOD permission to allow a file download, and whatever else may be involved in this. Let me know how what keywords go into that search please?

If anyone has any reference to get me started I would much appreciated it. Thanks.
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #230574 by Joffm
What about this?
[url] forums.limesurvey.org/forum/can-i-do-thi...later-question-again [/url]

And according to your post you wants to provide a link to download the file(s).

What I would like to achieve is to have the questionnaire results displayed (done via "{ANSWERTABLE}") and below that provide a link to the uploaded images for easy download


In my opinion you got everything in the linked thread. It shows an ajax call to do something.
Just adapt the ajax call to your needs, like renaming and zipping the file(s) and returning the name of the zip folder.
And in your email template insert a link to download this folder.

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago #230577 by Armitage2k
I've been reading through dozens of threads, plugin posts, SO posts, etc. over the past few days and the main takeaway is that this is a feature much desired by many users, and has been so for many ~7 years already.

Plugin "downloadMyFiles" is the closest that comes to doing what I want, but given that it has not been updated in a year and doesn't even have a config.xml file, makes me rather sceptical as to whether it will be updated in the future and remain usable.

As for the link you posted, thank you for the reference. What I dont quite get here is how I am supposed to do this for 15-20 images that I want to upload via one file-upload question. There has to be a better way to capture those images, perhaps move them to a public folder with a matching SID, and then add it to the email notification.

The link you shared deals with uploading and displaying a single image during the ongoing survey, so not quite what is needed for my specific case.

Honestly, at this point I am considering moving my surveys to Surveymonkey simply because of this one functionality. I really wish LS would come up with a way to make it easier to share uploaded files with external users, data privacy should not be the reason why this gets canned.

Thanks for the help though, if there is any plugin or other way of doing this, would appreciate a link.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose