also honour the ``lcd`` context when uploading the files