add support for uploading Pathname