title: AccessDenied Invalid according to Policy: Policy Condition failed: ["eq", "$success_action_redirect", "http://localhost/"]
body: <p>I'm trying to upload image to Amazon S3 bucket but getting a error like,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Error&gt;&lt;Code&gt;AccessDenied&lt;/Code&gt;&lt;Message&gt;Invalid according to Policy: Policy Condition failed: ["eq", "$success_action_redirect", "LOCALHOST"]&lt;/Message&gt;
  </code></pre>
  
  <p>This is my policy:</p>
  
  <pre><code>POLICY_JSON = {'expiration': '20020-01-01T00:00:00Z',    'conditions': [    {'bucket': 'S3-bucket'},    ['starts-with', '$key', 'uploads/${filename}'],    {'acl': 'private'},    {'success_action_redirect': 'LOCALHOST'},    ['starts-with', '$Content-Type', ' '],    ['content-length-range', 0, 1048576]    ]    };
  </code></pre>
  
  <p>Can anyone help me? How can i fix this problem?</p>