Upload: Fix applying of basePath