Welcome to the LimeSurvey Community Forum

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

Automate Exporting Uploaded Files

  • bdbp23
  • bdbp23's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 2 weeks ago - 5 months 2 weeks ago #252029 by bdbp23
Automate Exporting Uploaded Files was created by bdbp23
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.0.0+230405
Own server or LimeSurvey hosting: Own server, dev run in docker
Survey theme/template: vanilla
==================
I have a survey where among other things users upload an image.

I've built a custom plugin to hit a specific webhook with the survey answers for processing on submit, but am not sure how to automate exporting the images resources that get uploaded.

I've reviewed the methods available here .

When I look at the data for that question in getResponse() it looks like I'd have to rename the file located at upload/surveys/999999/files with a name and extension myself:
Code:
[{ "title":"","comment":"","size":"44.3056640625","name":"test-file.png","filename":"fu_r9f47ruw4z7t5aa","ext":"png" }]

Am I missing an existing method to cut down on that work?
Last edit: 5 months 2 weeks ago by bdbp23. Reason: fixed code block

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose