Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python file upload #281

Open
lataguru opened this issue Dec 8, 2019 · 0 comments
Open

Python file upload #281

lataguru opened this issue Dec 8, 2019 · 0 comments

Comments

@lataguru
Copy link

lataguru commented Dec 8, 2019

I am trying to upload file using python request. However the uploaded file also has headers in it
e.g
My original file is as below
 cat /tmp/file1
file 1

My uploaded file contains :
 cat ~/Downloads/file1
--d0fc8ad134ce4ffab253f2aba200458e
Content-Disposition: form-data; name="/tmp/file1"; filename="file1"
Content-Type: application/binary

file 1

--d0fc8ad134ce4ffab253f2aba200458e--

I have tried multiple combinations of content type and disposition however it isnt working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant