Refactor upload rutine to scap_upload provider.