URLSessionMPFD | Code from tutorial on URLSession Multipart / Form-Data | iOS library
kandi X-RAY | URLSessionMPFD Summary
kandi X-RAY | URLSessionMPFD Summary
Code from tutorial on URLSession Multipart / Form-Data.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of URLSessionMPFD
URLSessionMPFD Key Features
URLSessionMPFD Examples and Code Snippets
Community Discussions
Trending Discussions on URLSessionMPFD
QUESTION
I've found this code https://github.com/Kilo-Loco/URLSessionMPFD which constructs multipart form-data
but this works when parameters are [String: String]
. My parameters are [String: Any]
. How to make it with [String: Any]
?
I'm shown only relevant code, I hope it will be sufficient to understand my issue.
...ANSWER
Answered 2019-Jan-28 at 05:47You can do like below, though you'd better to confirm if your server-side framework can handle this type of parameter 'name[key]'. Many of modern frameworks can.
related: How do I POST an array with multipart/form-data encoding?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install URLSessionMPFD
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page