title: How to POST an MP4 using Python requests?
body: <p>I am trying to upload an MP4 file, using requests.post. I'm not sure if it is due to the size of the file, as it is 3.2MB and I have seen people saying they have issues over 1.5MB. Any help is appreciated. Thanks</p>
  
  <p>def post_video(URL):</p>
  
  <pre><code>files = {'file': open(file_path, 'rb')}
  response = requests.post(URL, files=files)
  return response
  </code></pre>
  
  <p>The response code should 204, however it is returning 500. The request works on Swagger UI</p>