Avoided the URL class adding  parameters when generating post data for uploading files.