title: How to upload video to s3 using API GW and python?
body: <p>Im trying to make a api which will upload video to s3 . I all ready managed to upload the video in s3, but the problem is the video file is not working . i checked  content-type of video file, and it's binary/octet-stream instead on video/mp4 . So i set content-type to &quot;video/mp4&quot; while calling put_object api, but it still not working.</p>
  <p>I use Lambda function for putting the video to s3 . here is my lambda code -</p>
  <pre><code>import json
  import base64
  import boto3
  
  
  
  def lambda_handler(event, context):
      
  
      bucket_name = 'ad-live-streaming'
      s3_client = boto3.client('s3')
      
      file_content = event['content']
      merchantId = event['merchantId']
      catelogId = event['catelogId']
      file_name = event['fileName']
      
      file_path = '{}/{}/{}.mp4'.format(merchantId, catelogId, file_name)
   
  
      s3_response = s3_client.put_object(Bucket=bucket_name, Key=file_path, Body=file_content, ContentType='video/mp4')    
  
          
      return {
          'statusCode': 200,
          &quot;merchantId&quot;:merchantId,
          &quot;catelogId&quot;:catelogId,
          &quot;file_name&quot;:file_name,
      }
  
  </code></pre>
  <p>Any idea how to solve this issue ?</p>