json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

files endpoint option #995

Open hugsbrugs opened 5 years ago

hugsbrugs commented 5 years ago

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 !