- Posts: 40
- Thank you received: 4
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Image Source Path in uploaded lss breaks
1 year 9 months ago #219043
by ployrich
Image Source Path in uploaded lss breaks was created 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!
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.
1 year 9 months ago #219044
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.
1 year 8 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
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.
1 year 1 month 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)?
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.