Make use to #media_type instead of #content_type to avoid false negatives (e.g., multipart/form-data; boundary=...)
Hey :wave:
this PR would fix https://discourse.hanamirb.org/t/how-do-you-set-up-a-file-upload-route-correctly-for-a-json-rest-api/1222/3
thanks
This looks great, @wuarmin! Thanks for doing it!
Could you please add one test to demonstrate this working? Your exact example from your forum post would be great.
Thanks for reviewing. Yes, I'll see if I can find the time today. Have a nice evening.
I added a test.
@timriley, perhaps you no longer have this important fix on your radar. I just wanted to remind you, as file upload is currently being discussed. It might save you some time.
Thanks @wuarmin, my radar gets a bit flaky sometimes. 😅 I really appreciate the nudge!
Thanks @wuarmin for this fix!