title: Error executing “PutObject” on AWS
body: <p>I am trying to read .png file from storage path of laravel and upload the same into amazon s3, but i'm getting this below issue:</p>
  
  <blockquote>
    <p>{
        "code": 422,
        "status": "error",
        "data": {
            "exception": "Error executing \"PutObject\" on \"<a href="https://s3.amazonaws.com/mrxmms/123/12345_ach.png" rel="nofollow noreferrer">https://s3.amazonaws.com/mrxmms/123/12345_ach.png</a>\"; AWS HTTP error:
    count(): Parameter must be an array or an object that implements
    Countable"
        },
        "message": "Unprocessable Entity" }</p>
  </blockquote>
  
  <p>Here is my sample code:</p>
  
  <blockquote>
    <p>$dir = storage_path('uploads');   $image_val = $dir. '/'
    ."product.png"; </p>
    
    <p>$image_load =
    Storage::disk('s3')->put("123/12345.png",file_get_contents($image_val));</p>
  </blockquote>
  
  <p>Can someone please help me? Thanks in advance!!</p>