mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-11-09 00:22:38 -06:00
The upload was spooled to the receiving instance's temp dir and only its name travelled with the event. That holds while events stay in-process, but it ties the job to the instance that accepted the upload. Store it through the files package on the configured backend and record its id on the migration status, so the event carries only the status id and any instance can run the import. The job copies it to a local temp file first: the zip importer needs random access, which an S3 object body cannot give. The upload is removed once the import is over. An hourly cron deletes leftovers from events lost on restart or instances that died mid-import.