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

No way to set content type of each param in multipart #668

Closed
darkmakukudo opened this issue Apr 3, 2018 · 0 comments · Fixed by #927
Closed

No way to set content type of each param in multipart #668

darkmakukudo opened this issue Apr 3, 2018 · 0 comments · Fixed by #927

Comments

@darkmakukudo
Copy link

Request Method: POST
Referrer Policy: no-referrer-when-downgrade
Cache-Control: no-cache, no-store, must-revalidate
Connection: keep-alive
Content-Length: 579
Content-Type: application/json
Date: Mon, 02 Apr 2018 09:47:17 GMT
Server: Apigee Router
Accept: application/json
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 478592
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryV2XWWBaHohtZIDEg
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
X-Requested-With: XMLHttpRequest
------WebKitFormBoundaryV2XWWBaHohtZIDEg
Content-Disposition: form-data; name="guid"

9ffffba4-2f14-4e93-9c59-c03e67262b47
------WebKitFormBoundaryV2XWWBaHohtZIDEg
Content-Disposition: form-data; name="json"
// Ability to set the content type for each part

{"name":"test.png"}
------WebKitFormBoundaryV2XWWBaHohtZIDEg
Content-Disposition: form-data; name="qquuid"

d07f56d9-5b41-49f9-8fd1-d1ea29be4a16
------WebKitFormBoundaryV2XWWBaHohtZIDEg
Content-Disposition: form-data; name="qqfilename"

test.png
------WebKitFormBoundaryV2XWWBaHohtZIDEg
Content-Disposition: form-data; name="qqtotalfilesize"

477560
------WebKitFormBoundaryV2XWWBaHohtZIDEg
Content-Disposition: form-data; name="file"; filename="test.png"
Content-Type: image/png

------WebKitFormBoundaryV2XWWBaHohtZIDEg--

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

Successfully merging a pull request may close this issue.

1 participant