I found the solution.
Instead of (using python requests library)
files = {‘file’: open(file_path, ‘rb’)}
response = requests.post(url, headers=headers, files=files)
I need to use the following where it reads the data first vs referencing it as a file.
with open(file_path, 'rb') as f:
file_content = f.read()
response = requests.post(url, headers=headers, data=file_content)