rocket-multipart-form-data icon indicating copy to clipboard operation
rocket-multipart-form-data copied to clipboard

Rocket 0.5.0-dev with multipart-async

Open arnodb opened this issue 5 years ago • 3 comments

Hi,

I've just spent some time making rocket-multipart-form-data compile against rocket's master branch: https://github.com/impero-com/rocket-multipart-form-data/tree/rocket-0.5.

The example actually does not compile because I didn't have the time to fix rocket-etag-if-none-match where I faced with a problem with hyper. However, I have quickly tested the whole thing with one use case and it seems to be working.

If you are interested in moving forward with this, I would be keen to do additional work.

arnodb avatar Nov 02 '20 18:11 arnodb

I replaced the multipart crate with multer and upgrade Rocket to 0.5.0-dev. The example can be compiled and works fine.

0a175ccc2138d7cc3e0360843814f126fc455f5c

magiclen avatar Apr 28 '21 06:04 magiclen

Note that 0.5 already includes direct support for multipart forms. See FromForm and the master forms guide.

SergioBenitez avatar May 05 '21 07:05 SergioBenitez

I wrote another example which uses a struct to derive FromForm to try to do the same things that this example does.

magiclen avatar May 08 '21 06:05 magiclen