botcute
How to handle updating a list of children entity
I have a list of children entity. If I were to update the list with new entity mix with some old entity. Will efcore deletes all of the entity that doesn't exist in the new list/ add new entities/ update the old entity
2 replies
Help with image upload
I have an endpoint where user can upload many images (1-10). I used cloudinary for uploading the file and then store the url in sql table. User can later on change the image via a read endpoint, where I check which Images are new and upload them to cloudinary then replace the url and delete the old images. I feel like this is not the most optimal approach. Does anyone know a better way to handle upload and change image
3 replies