View Issue Details

This issue affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20837Bug reportsQuestion editorpublic2026-11-07 23:00
Reporterc_schmitz Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version7.9.x 
Summary20837: New editor: images uploaded for answer options are broken when LimeSurvey is installed in a subfolder
Description

When LimeSurvey is installed in a subfolder (e.g. https://example.com/limesurvey/), pictures uploaded in the new editor (e.g. for the List image select (Radio) / Image select multiple choice themes: click or drag a picture onto an answer option) are saved with a root-relative path such as /upload/surveys/<sid>/images/picture.png. The browser resolves this to https://example.com/upload/... instead of https://example.com/limesurvey/upload/..., so the picture is broken in the editor preview and in the survey.

The REST endpoint v1/file-upload-survey-image returns both uploaded.filePath (relative to the LimeSurvey root, without the base URL: FileUploadService::convertFullIntoRelativePath()) and uploaded.fileUrl (with App()->getBaseUrl(true)). The stored path is the one without the base URL.

On an installation in the web root the problem doesn't show, because the root-relative path happens to be correct.

Steps To Reproduce
  1. Install LimeSurvey in a subfolder, e.g. http://localhost/limesurvey700/.
  2. New editor: add a 'List image select (Radio)' question.
  3. Drop a PNG onto an answer option.
  4. Preview the survey: the image is broken; its src is /upload/surveys/<sid>/images/... (missing /limesurvey700).
Additional Information

Expected: store a URL that includes the base path (or a path that is resolved against the base URL when rendering). Found while documenting the image select question themes for the manual.

TagsNo tags attached.
Bug heat0
Complete LimeSurvey version number (& build)7.9.1
I will donate to the project if issue is resolvedNo
Browserany
Database type & versionnot relevant
Server OS (if known)Linux
Webserver software & version (if known)Apache, LimeSurvey in a subfolder (/limesurvey700)
PHP Version8.3
Git branch / Pull Request URLN/A

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-11-07 23:00 c_schmitz New Issue