Not able to upload file through file API

When trying to upload file through https://developers.hubspot.com/docs/methods/files/post_files , getting this error again and again :-

[status_code] => 400
 [response] => {"status":"error","message":"no file found, please set name to 'files' or 'files[]'","correlationId":"339d101e-9be8-4ae9-b367-5f15c2438959","requestId":"0c6332dc-3734-4303-8a50-55631cedbbde"}
 [errors] =>  

Hi @Shwetansh07,

Are you using python to upload the file via the API into HubSpot? If so, I believe these few thread discussion here will be helpful for you: