FSCStorage provides tenant-isolated file storage. It keeps file contents on disk and metadata in SQLite. Large files can be uploaded in resumable parts.
Windows. Run the MSI and select the data directory, HTTP/HTTPS transport, and service account. The MSI registers fsc-storage and includes the runtime by default. To build the MSI from source, run dotnet build installer/FSCStorage.Installer.wixproj -c Release with the .NET 10 SDK.
Ubuntu. Run the installer from a trusted checkout. It prepares the .NET 10 SDK, clones the source, and publishes the service to /opt/fsc.storage. Enter an absolute path for the data directory when prompted. Before starting the service, review Kestrel settings in /opt/fsc.storage/appsettings.json and the service environment in /etc/default/fscstorage-env.
sudo bash scripts/install-fsc-storage.sh
sudo systemctl start fsc_storage.service
systemctl status fsc_storage.service
Send X-Api-Token. A tenant token requires a matching tenant GUID in X-Tenant-Id. The service checks token permissions for reading, writing, and deleting. For a single-request upload, send multipart/form-data with a file field. For multipart uploads, keep the uploadId, check status when resuming, and complete the session after all parts are accepted.
| Request | Purpose |
|---|---|
POST /api/file/upload |
Upload a file |
GET /api/file |
List files |
GET /api/file/{fileGuid}/download |
Download a file |
DELETE /api/file/{fileGuid} |
Delete a file |
POST /api/multipart/init |
Create an upload session |
PUT /api/multipart/{uploadId}/parts/{partNumber} |
Upload a part |
GET /api/multipart/{uploadId}/status |
Check session status |
POST /api/multipart/complete |
Complete a session |
POST /api/multipart/{uploadId}/abort |
Abort a session |
POST /api/admin/tenants |
Create a tenant as an administrator |