Skip to content

Instantly share code, notes, and snippets.

@malcommac
Created March 15, 2022 19:18
Show Gist options
  • Save malcommac/4e953d8c24800e945a7f367dec779cce to your computer and use it in GitHub Desktop.
Save malcommac/4e953d8c24800e945a7f367dec779cce to your computer and use it in GitHub Desktop.
req.body = .multipart(boundary: nil, {
$0.add(string: "value", name: "param_1")
$0.add(fileURL: fileURL, name: "image", mimeType: .gif)
$0.add(string: "some other", name: "param_2")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment