fixes #2736 - avoid OOM on upload log image
Merge pull request #2768 from marco-jacob/issue#2736

fixes #2736 - avoid OOM on upload log image