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
I encountered a challenge while attempting to integrate this gem with another Rails application that utilizes Active Storage. My objective was to send files, but upon inspecting the source code and conducting some research, I discovered that there is currently no direct method to achieve this.
I noticed that there is a format option available for overriding, but it isn't sufficient for sending a multipart request with Net::HTTP. I started working on implementing this feature, but it seems like it would require a significant refactoring effort to make it functional. I'm curious to know your thoughts on whether it would be appropriate to add this functionality directly to this gem, or perhaps consider it as a feature in another gem as a plugin.
So far, my assumption is that the service expects (through the Accepts header) a multipart/form-data payload and then responds with a payload in another format like JSON or XML (through the Content-Type header).
Does that describe your scenario? Could you share more information about the API that you're integrating with (specifications, example payloads and responses, etc)?
Activity
rafaelfranca commentedon Jan 24, 2024
I'd be happy with a PR, but we have no plans to work ourselves to implement new feature on this gem.
Support `multipart/form-data` requests
Implement `Connection` in terms of `Net::HTTP` Request
Implement `Connection` in terms of `Net::HTTP` Request
Support `multipart/form-data` requests
Implement `Connection` in terms of `Net::HTTP` Request
Support `multipart/form-data` requests
Implement `Connection` in terms of `Net::HTTP` Request
Implement `Connection` in terms of `Net::HTTP` Request
Support `multipart/form-data` requests
seanpdoyle commentedon Dec 22, 2025
@PedroAugustoRamalhoDuarte I'm exploring the changes necessary to implement this behavior (for example, see seanpdoyle@bb2f0ba).
So far, my assumption is that the service expects (through the
Acceptsheader) amultipart/form-datapayload and then responds with a payload in another format like JSON or XML (through theContent-Typeheader).Does that describe your scenario? Could you share more information about the API that you're integrating with (specifications, example payloads and responses, etc)?