Welcome to the LimeSurvey Community Forum

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

How to download Resources (Images) from a Survey using the API.

  • Kuckii
  • Kuckii's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 2 months ago #245215 by Kuckii
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Cloud 5.6.31
Own server or LimeSurvey hosting: Yes?
Survey theme/template:
==================
I can download responses to the survey using the API for Python. 
But is there no way to download the resources from the users using the API? (they sign an image with their signature which will be saved)
It seems like you can only download the zip archive manually on the website.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 2 months ago #245219 by tpartner
Have you tried get_uploaded_files() with a token value?

- api.limesurvey.org/classes/remotecontrol...d_get_uploaded_files

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • Kuckii
  • Kuckii's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 2 months ago #245225 by Kuckii
I saw it, but haven't tried it because:
"On success: array containing all uploads of the specified response"
How could the zip or images be inside an array? Sounds like the Array only has information (such as the names) of those images. Or will the array have the URLs to download each file?

Please Log in to join the conversation.

  • Kuckii
  • Kuckii's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 2 months ago #245226 by Kuckii
Also, "Obtain all uploaded files for all responses" is PHP(?) and not Python.
The mentioned Python library from Github currently has fewer features (seems to be a work in progress).

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose