Prevent file larger than 1MB from going out

Signed-off-by: Cody Massin <keyosk@gmail.com>