updated curl-upload