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. |
||
|---|---|---|
| .. | ||
| handler | ||
| unsplash | ||
| upload | ||
| background.go | ||
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. |
||
|---|---|---|
| .. | ||
| handler | ||
| unsplash | ||
| upload | ||
| background.go | ||