View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20862Feature requestsOtherpublic2026-11-17 14:14
Reportercoratgerl Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary20862: Feature request: pluggable storage for upload/ so LimeSurvey can run without a local disk
Description

We want to run LimeSurvey 7 on stateless containers that scale to zero. The local disk is ephemeral and not shared between instances.

The blocker is the upload directory. uploaddir is a real local folder. Respondent files (upload/surveys/{id}/files/), survey images, themes and plugins installed from the admin are read and written with local calls: is_file, readfile, move_uploaded_file, scandir, GD on a path, ZipArchive on a directory. There is no storage interface we can point at an S3-compatible bucket. A file saved by instance A is invisible to instance B, and it disappears when the instance scales to zero. Mounting the bucket as a filesystem is not available in this runtime.

The only plugin hook we found, beforeProcessFileUpload, can push a file to S3 at upload time and set movefile to false. It does not cover reading the file back, deleting it, exporting it, the quota, or the file manager. Those stay on the local disk.

Goal: no upload directory on the server. Files live in a bucket.

Additional Information

Two ways to get there. Either would be enough.

Option A — complete the plugin hooks.
Extend the existing event so a third-party plugin owns the whole file lifecycle: write, read, delete, list, export, quota and the file manager. beforeProcessFileUpload only covers the write. A plugin could then talk to an S3-compatible bucket without a change of the default local behaviour. This keeps the AWS SDK out of core.

Option B — a native storage adapter.
Introduce a small storage interface in front of uploaddir (local driver by default, S3 driver beside it), chosen in config.php. Calls that need a real path (image transforms, ZIP of uploaded files) would use the instance temp dir and write the result back through the adapter.

We can propose a pull request against the develop branch once this ticket is accepted. Option A is the smaller core change. Option B is the one that makes every file path, not only respondent uploads, leave the local disk.

No .lss attached: this is not a survey defect, it is the absence of a storage backend.

TagsNo tags attached.
Bug heat2
Git branch / Pull Request URL
Users affected %0

Users monitoring this issue

coratgerl

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-11-17 14:07 coratgerl New Issue
2026-11-17 14:14 coratgerl Issue Monitored: coratgerl
2026-11-17 14:14 coratgerl Bug heat 0 => 2