Welcome to the LimeSurvey Community Forum

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

Image Source Path in uploaded lss breaks

  • ployrich
  • ployrich's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 7 months ago #219043 by ployrich
Hello everyone,

For our survey we are generating lss files to be uploaded. In some questions we are using pictures so what our script does is basically write the img tags like:
<img alt="" src="/upload/surveys/813554/images/test.png" />

I noticed that when I upload the lss File over web interface with the 'convert resource and expression fields' option turned on and also when uploading the file via the remoteControl API the source path is being changed.

The change consists of any leading forward-slash '/' gets deleted, which essentially breaks the link. Using Version 3.24.6.

Is that expected behavior? Or is it a bug?

Thank you for any insight!

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #219044 by tpartner
Replied by tpartner on topic Image Source Path in uploaded lss breaks
Try updating to the latest 3.x version and retesting.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • ployrich
  • ployrich's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 6 months ago #219509 by ployrich
Replied by ployrich on topic Image Source Path in uploaded lss breaks
Updating fixed it.

I am now on Version 3.27.14 and now the links remain as specified in the file.
For uploading via API and web interface.

Thanks
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • ployrich
  • ployrich's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 11 months ago #227561 by ployrich
Replied by ployrich on topic Image Source Path in uploaded lss breaks
Turns out it didn't.

We are now basically in production which means we are deploying generated lss files via API to self hosted servers with the previously mentioned version of LS.

And the problem is exactly the same as when I started the thread. I am trying to find out what I did that I thought it was fixed.

Any other suggestions than updating again (Its not realy an option at this point)?

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose