Embed upload max size

Fixes #4591