title: The number of GET/POST parameters exceeded settings.DATA_UPLOAD_MAX_NUMBER_FIELDS
body: <p>I got an error: "The number of GET/POST parameters exceeded settings.DATA_UPLOAD_MAX_NUMBER_FIELDS".</p>
  
  <p>Error says that TooManyFieldsSent at <code>/api/upload</code>.</p>
  
  <p>I wrote in my <code>views.py</code>.</p>
  
  <pre><code>def upload(request):
      id, array = common(request)
  
      if request.FILES:
          file = request.FILES['req'].temporary_file_path()
      else:
          return HttpResponse('&lt;h1&gt;NG&lt;/h1&gt;')
  
      return HttpResponse('&lt;h1&gt;OK&lt;/h1&gt;')
  
  def common(request):
      id = json_body.get("access", "0")
      if id == "":
          id = "0"
  
      s = []
      with open(ID_TXT, 'r') as f:
          for line in f:
              s += list(map(int, line.rstrip().split(',')[:-1]))
  
      array = [s[i:i + 2] for i in range(0, len(s), 2)]
  
      return id, array
  </code></pre>
  
  <p>I post access &amp; req data by using POSTMAN like:
  <a href="https://i.stack.imgur.com/EmVdf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EmVdf.png" alt="enter image description here"></a></p>
  
  <p>I think this error is limitation of being able to send file size, so I added the code to settings.py</p>
  
  <pre><code>DATA_UPLOAD_MAX_MEMORY_SIZE = 100000000
  </code></pre>
  
  <p>But the error didn't solved. I read this page: <a href="https://stackoverflow.com/questions/44745355/how-to-avoid-the-number-of-get-post-parameters-exceeded-error">How to avoid &quot;The number of GET/POST parameters exceeded&quot; error?</a> as a reference. How should I fix this?</p>