Upload when charging

See #465