Hass
Explore posts from servers❔ Getting error 500 on form post (using fetch)
I'm trying to do a form post (posting a model), but my controller is not being called. When I check the fetch result on the console, I get a 500 error, but I haven't been able to pinpoint where the problem lies.
The model:
The js object I'm posting/ the fetch post:
The ImagesPath is an array of strings, where I get the values from inputs of the type 'file'.
The controller
Maybe I'm missing some basic concept or basic knowledge? I've been trying to fix this for hours but I haven't been able to
38 replies