Use a temporary file instead of io.ReadAll when restoring attachments from a dump. This prevents loading entire files into memory, which could cause OOM errors for large attachments during restore. |
||
|---|---|---|
| .. | ||
| dump.go | ||
| restore.go | ||
| restore_test.go | ||
Use a temporary file instead of io.ReadAll when restoring attachments from a dump. This prevents loading entire files into memory, which could cause OOM errors for large attachments during restore. |
||
|---|---|---|
| .. | ||
| dump.go | ||
| restore.go | ||
| restore_test.go | ||