Use a temp file instead of io.ReadAll to avoid buffering the entire Unsplash image in RAM, which could cause OOM with large images or high maxsize configuration. |
||
|---|---|---|
| .. | ||
| auth | ||
| avatar | ||
| background | ||
| dump | ||
| keyvalue | ||
| migration | ||
Use a temp file instead of io.ReadAll to avoid buffering the entire Unsplash image in RAM, which could cause OOM with large images or high maxsize configuration. |
||
|---|---|---|
| .. | ||
| auth | ||
| avatar | ||
| background | ||
| dump | ||
| keyvalue | ||
| migration | ||