I try to figure out if I can upload media files, using curl (or anything else really), to python-eve field that is inside a dict type.
The documentation, http://docs.python-eve.org/en/latest/features.html, only have the simple example of
accounts = {
...,
'pic': {'type': 'media'},
...
}
curl -F "pic=@profile.jpg"
But what about this one?
accounts = {
...,
'extras': {
'type': 'dict',
'schema': {
'pic': {'type': 'media'},
...
}
}
}
I've tried with curl -F "extras.pic=@profile.jpg", curl -F "extras:pic=@profile.jpg" etc
I've also experimented with sub resources without luck.
I am about to accept that I'm not allowed to structure my schema as I wish, but if there is a way, I'd be very happy to know.