title: How can i send file with aiohttp?
body: <p>this is my code:</p>
  <pre><code>payload = {'text': input_text,
             'question_info': '',
             'include_intonation': 1,
             'stress_version': stress_version,
             'include_fluency': 1,
             'include_ielts_subscore': 1}
  
  files = [
      ('user_audio_file', open(saved_file_path, 'rb'))
  ]
  headers = {}
  form = aiohttp.FormData()
  for key, value in payload.items():
      form.add_field(key, value)
  form.add_field('user_audio_file', open(saved_file_path, 'rb'))
  async with aiohttp.ClientSession() as session:
      async with session.post(url,data=form) as response:
          response_json = await response.json()
  </code></pre>
  <p>and I want to send file with aiohttp to URL but I got this exception</p>
  <pre><code>'Can not serialize value type: &lt;class \'int\'&gt; headers: {} value: 1'
  </code></pre>
  <p>I do that with requests library like this</p>
  <pre><code>response = request(
      &quot;POST&quot;, url, headers=headers, data=payload, files=files)
  response_json = response.json()
  </code></pre>
  <p>but I decided to use aiohttp  because it shoud be async
  please help me for this decision</p>
  <p>thanks</p>