Fix an issue in transfer listener when uploading directories.
#37: Add url and external id in contents.