{"action":"created","issue":{"url":"https://api.github.com/repos/thanhson1085/python-s3/issues/1","labels_url":"https://api.github.com/repos/thanhson1085/python-s3/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/thanhson1085/python-s3/issues/1/comments","events_url":"https://api.github.com/repos/thanhson1085/python-s3/issues/1/events","html_url":"https://github.com/thanhson1085/python-s3/issues/1","id":125937372,"number":1,"title":"What is the difference between file upload using S3Transfer vs  put?","user":{"login":"scheung38","id":1273014,"avatar_url":"https://avatars.githubusercontent.com/u/1273014?v=3","gravatar_id":"","url":"https://api.github.com/users/scheung38","html_url":"https://github.com/scheung38","followers_url":"https://api.github.com/users/scheung38/followers","following_url":"https://api.github.com/users/scheung38/following{/other_user}","gists_url":"https://api.github.com/users/scheung38/gists{/gist_id}","starred_url":"https://api.github.com/users/scheung38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheung38/subscriptions","organizations_url":"https://api.github.com/users/scheung38/orgs","repos_url":"https://api.github.com/users/scheung38/repos","events_url":"https://api.github.com/users/scheung38/events{/privacy}","received_events_url":"https://api.github.com/users/scheung38/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-11T12:51:27Z","updated_at":"2016-01-11T14:14:32Z","closed_at":null,"body":"Your article mentioned:\r\n\r\nhttps://sonnguyen.ws/upload-and-download-files-from-aws-s3-with-python-3/\r\n``` \r\ntransfer = S3Transfer(boto3.client('s3', cfg.AWS_REGION, aws_access_key_id=cfg.AWS_APP_ID,\r\n aws_secret_access_key=cfg.AWS_APP_SECRET))\r\n\r\ntransfer.upload_file(file_path, AWS_BUCKET, file_path)\r\n```\r\nHow is that different from :\r\n```\r\ns3.Object(AWS_BUCKET, fileName)).put(Body='hello reinvent!')\r\n```\r\nThey both do the same thing of uploading to S3 correct? Is it the case of 'transfer' handling the file as well as the path, whereas 'put' only handles a single file name? \r\n\r\nFor the case of 'transfer' why is the file_path even repeated twice in the argument list?"},"comment":{"url":"https://api.github.com/repos/thanhson1085/python-s3/issues/comments/170563090","html_url":"https://github.com/thanhson1085/python-s3/issues/1#issuecomment-170563090","issue_url":"https://api.github.com/repos/thanhson1085/python-s3/issues/1","id":170563090,"user":{"login":"scheung38","id":1273014,"avatar_url":"https://avatars.githubusercontent.com/u/1273014?v=3","gravatar_id":"","url":"https://api.github.com/users/scheung38","html_url":"https://github.com/scheung38","followers_url":"https://api.github.com/users/scheung38/followers","following_url":"https://api.github.com/users/scheung38/following{/other_user}","gists_url":"https://api.github.com/users/scheung38/gists{/gist_id}","starred_url":"https://api.github.com/users/scheung38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheung38/subscriptions","organizations_url":"https://api.github.com/users/scheung38/orgs","repos_url":"https://api.github.com/users/scheung38/repos","events_url":"https://api.github.com/users/scheung38/events{/privacy}","received_events_url":"https://api.github.com/users/scheung38/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T14:14:32Z","updated_at":"2016-01-11T14:14:32Z","body":"Thanks, \r\nfilepath is filepath for the first argument, \r\nfilepath is key for the second argument\r\n\r\na bit confusing having same name for different meanings? is that possible?"}}