json-schema-form/angular-schema-form

files endpoint option

hugsbrugs opened this issue · 0 comments

Hi there,

I can upload files using endpoint

Schema :

"image":  {
                    "title": "Image",
                    "type": "array",
                    "format": "singlefile",
                    "x-schema-form": {
                       "type": "array"
                    },

Form :```

"items": [
{
"key": "images",
"type" : "files",
"endpoint": "http://angular-user.test/api/admin/images",
"startEmpty" : true,
"button_label" : "Vos images"
}
]

But I would like to be able to send additional data to the file upload endpoint to indicate for example with category file belongs to. Is this achievable ?
Thanks for any suggestions !