francescovallone / serinus

Serinus is a minimalistic framework for building efficient and scalable backend applications powered by Dart. 🎯
https://serinus.app
MIT License
34 stars 2 forks source link

question: Support parsing multipart and form-data requests #82

Closed mjablecnik closed 1 week ago

mjablecnik commented 1 week ago

Do you support something like: shelf_multipart?

francescovallone commented 1 week ago

Yep, multipart and url-encoded form data requests are supported. To access the values inside the form you can use the following

    on(Route.post(path: '/'), (RequestContext context) async {
      final formData = context.body.formData.values;
      return 'Hello World!';
    });
mjablecnik commented 1 week ago

Ok. I didn't find it in documentation so I didn't know if you support it or not.. :)

francescovallone commented 1 week ago

Yep I can understand the confusion 😄 I will add them to the documentation in a specific page! I'm closing the issue, if you have other question regarding this issue you can re-open it!