Add support for automatic upload on save.