Tags: lichti/zaplab
Tags
fix: correct PocketBase v0.36 file upload pattern for media event per…
…sistence
saveEventFile was manually uploading via pb.NewFilesystem()+fs.UploadFile() then
setting only the filename string on the record, which PocketBase v0.36 rejects
for new records. Fixed by passing the *filesystem.File object directly to
record.Set("file", file) and letting pb.Save handle the upload atomically.
Affected: incoming image, audio, video, document, sticker and vCard messages
were logging 'Failed to save event' and falling back to a file-less record.
PreviousNext