File uploading problem in octoprint API url using Django Framework

What is the problem?
I am a software developer working with octoprint API to develop Web Application using Django framework. I am having trouble with uploading file using url and seeking for help.

While uploading file only its name is uploaded to octoprint via web application using python requests.post() method.

What did you already try to solve it?
I had used postman to send file to octoprint API and it works fine but while using it in Web application, only file name is being uploaded.