You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I need to parse multipart/form-data that is sent from an iOS app using Alamofire without knowing what the boundary is before decoding. I've looked around — a little bit — and it appears that this is not something supported by this library. Alamofire does not have a convenience method that permits you to specify a custom value for the boundary. By default, the boundary appears to be a randomly generated value. Alamofire does seem to support creating multipart/form-data requests with a custom boundary value, but it's a bit more involved than a single method call. It's likely the route that I'm going to take, but I thought I'd add this feature request here in case others ended up experiencing the same inconvenience.
Describe the solution you'd like
It looks to me that the boundary is defined within the body of multipart/form-data. So what I'd like is for a solution to exist that grabs this information from the data, and then uses it instead of requiring the consumer to provide it themselves.
Describe alternatives you've considered
Researching how to set a custom boundary using Alamofire.
Implementing a solution in Swift that suits my needs.
Not uploading data in the multipart/form-data format.
Using a Python script to parse the request body that is called from Swift code.
Additional context
None
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I need to parse multipart/form-data that is sent from an iOS app using Alamofire without knowing what the boundary is before decoding. I've looked around — a little bit — and it appears that this is not something supported by this library. Alamofire does not have a convenience method that permits you to specify a custom value for the boundary. By default, the boundary appears to be a randomly generated value. Alamofire does seem to support creating multipart/form-data requests with a custom boundary value, but it's a bit more involved than a single method call. It's likely the route that I'm going to take, but I thought I'd add this feature request here in case others ended up experiencing the same inconvenience.
Describe the solution you'd like
It looks to me that the boundary is defined within the body of multipart/form-data. So what I'd like is for a solution to exist that grabs this information from the data, and then uses it instead of requiring the consumer to provide it themselves.
Describe alternatives you've considered
Additional context
None
The text was updated successfully, but these errors were encountered: