I am using python with boto3 to upload file into s3 bucket. Boto3 support upload_file() to create s3 object. But this API takes file name as input parameter 
Can we give actual data buffer as a parameter to upload file () function instanced of file name? 
I knew that we can use put_object() function if we want to give data buffer as parameter to create s3 object. But I want to use upload_file with data buffer parameter. Is there any way to get out of this? 
Thanks in advance
There is currently no way to use a file-like object with upload_file. put_object and upload_part do support these, though you don't get the advantage of automatic multipart uploads.
Boto3 : Can we use actual data buffer as parameter instaed of file name to upload file in s3?