More flexible usage of upstream.upload()