View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20837 | Bug reports | Question editor | public | 2026-11-07 23:00 | 2026-11-07 23:00 |
| Reporter | c_schmitz | Assigned To | |||
| Priority | none | Severity | minor | ||
| Status | new | Resolution | open | ||
| Product Version | 7.9.x | ||||
| Summary | 20837: 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 |
| ||||
| 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. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 0 | ||||
| Complete LimeSurvey version number (& build) | 7.9.1 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | any | ||||
| Database type & version | not relevant | ||||
| Server OS (if known) | Linux | ||||
| Webserver software & version (if known) | Apache, LimeSurvey in a subfolder (/limesurvey700) | ||||
| PHP Version | 8.3 | ||||
| Git branch / Pull Request URL | N/A | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-07 23:00 | c_schmitz | New Issue |