abonander / multipart

A backend-agnostic extension for file uploads in HTTP libraries for Rust
MIT License
190 stars 92 forks source link

Gotham example #112

Open czifro opened 5 years ago

czifro commented 5 years ago

I've been searching for an example on how to use this with Gotham. I couldn't find one here nor on the Gotham repository. Do you have an example of how to integrate this with Gotham? I would much appreciate any help you can offer.

Cheers!

abonander commented 5 years ago

Gotham is an async framework so it's more in-line to support it in my multipart-async crate (which has admittedly languished a bit).

Gotham has been discussing supporting multipart/form-data integrally for a while now, but there hasn't been any movement on it: https://github.com/gotham-rs/gotham/issues/11

I tend to defer to the framework where they have plans to support multipart/form-data themselves to avoid having conflicting solutions. However, with the extremely slow movement in a case like this, I don't have much problem going ahead and implementing something myself.