title: Videos are not uploading to FastAPI
body: <p>I'm trying to upload a video to FastAPI.
  But an error occurs.</p>
  <p>This is my python code.</p>
  <pre><code>from fastapi import FastAPI, File, UploadFile
  from typing import List
  import os
  
  app = FastAPI()
  
  @app.get(&quot;/&quot;)
  def read_root():
    return { &quot;Hello&quot;: &quot;World&quot; }
  
  @app.post(&quot;/files/&quot;)
  async def create_files(files: List[bytes] = File(...)):
      return {&quot;file_sizes&quot;: [len(file) for file in files]}
  
  @app.post(&quot;/uploadfiles&quot;)
  async def create_upload_files(files: List[UploadFile] = File(...)):
      print('here')
      UPLOAD_DIRECTORY = &quot;./&quot;
      for file in files:
          contents = await file.read()
          with open(os.path.join(UPLOAD_DIRECTORY, file.filename), &quot;wb&quot;) as fp:
              fp.write(contents)
          print(file.filename)
      return {&quot;filenames&quot;: [file.filename for file in files]}
  </code></pre>
  <p>When I use Postman, the image uploads well, but the video does not upload.</p>
  <p>This is the error code.</p>
  <pre><code>INFO:     127.0.0.1:57251 - &quot;POST /uploadfiles/ HTTP/1.1&quot; 307 Temporary Redirect
  Did not find boundary character 254 at index 2
  INFO:     127.0.0.1:57252 - &quot;POST /uploadfiles HTTP/1.1&quot; 400 Bad Request
  </code></pre>
  <p>Please tell me what is the problem.</p>