Fixes to uploading.