file-upload-and-linking-admin-panel
Use decorating your dataprovider feature of React Admin to upload a Multi-part File upload.
I think we don't need this anymore with https://api-platform.com/docs/admin/file-upload/.
Yeah , if it does the same thing , we don't need it . Edit : It is not to upload a media_object itself but a media object for a entity (book for example)
You can use it to create an entity and upload its related file at the same time too (it needs to be handled a little differently in the back but it is feasible: I've done it recently). It will avoid to make 2 requests (and handle correctly the errors).
You can use it to create an entity and upload its related file at the same time too (it needs to be handled a little differently in the back but it is feasible: I've done it recently). It will avoid to make 2 requests (and handle correctly the errors).
That could be added in the admin-docs as an example . It meets many practical usecases.
Yes it would be a nice addition indeed. I don't know if I will have the time to do it, but you need two things:
- a custom
MultipartDecoder - a custom denormalizer
With this, a POST endpoint can be used with multipart/form-data (file + data).