I have my Rails backend organized to receive a POST like this in a controller:
{
"entry": {
"title": {
"media": {
"description": "some text",
"image": ...image here,
}
}
}
I can create the entry by POSTing a json like the above, with a base64 encoded image, but I would like to do this using formData instead (because the image might be large, or might even be a video...). I have tried this using Postman and I can create the entry with parameters as entry[title]
etc, but how do I express the image attribute? Is it even possible? I tried entry[media][image]
but that did not work (did not seemed right either...)
Is it possible to nest things like this when using formData?