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

How can I post Using POST response with a filename #14

Open
masagarino opened this issue May 16, 2017 · 0 comments
Open

How can I post Using POST response with a filename #14

masagarino opened this issue May 16, 2017 · 0 comments
Labels

Comments

@masagarino
Copy link

I've created API for sending file . but error is like this

Content-Disposition: form-data; name="datafile"; filename="ken2.jpg"
Content-Type: image/jpeg

I want to know if how can I pass filename in xhr .

In my API the error is
MultiValueDictKeyError at /hrs/cms/test_upload/
"'filename'"

filename is the name should I get in the post I send.

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

No branches or pull requests

2 participants