title: Flask Restful Parse POST data
body: <p>I am sending a POST request with <code>cURL</code> to <code>Flask Restful API</code> as: </p>
  
  <p><code>curl -X POST -H 'Content-Type: text/csv' -d @trace.csv http://localhost:5000/upload</code></p>
  
  <p>I am not able to read this data from this request or I don't know how to read the data. Below is my implementation of the <code>API</code>:</p>
  
  <pre><code>class ForBetaAndUpload(Resource):
      def post(self, kind='quotes'):    
          parser = reqparse.RequestParser()
          parser.add_argument('file')
          args = parser.parse_args()['file']
          print(args) #Prints: Null
  
  api.add_resource(ForBetaAndUpload, '/upload', endpoint='upload')
  
  if __name__ == "__main__":
      app.run(debug=True)
  </code></pre>
  
  <p>How can I read the csv file data that I'm sending with <code>cURL</code>. I'll very much appreciate your help. </p>