Fix http upload