Image Source Path in uploaded lss breaks

More
3 months 2 weeks 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.

More
3 months 2 weeks ago #219044 by tpartner
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.

More
2 months 4 weeks ago #219509 by ployrich
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.

Start now!

Just create your account and start using Limesurvey today.

Register now