System Information
- Strapi Version: 3.6.0
I am trying to upload a file to Strapi. I keep receiving the error `TypeError: Cannot read property ‘associations’ of undefined.
I am following a course and my code is code for code in the course so It may be due to strapi 3.6.0.
My frontend code:
const handleSubmit = async e => {
e.preventDefault();
const formData = new FormData();
formData.append('files', image);
formData.append('ref', 'homes');
formData.append('refId', houseId);
formData.append('field', 'image');
const res = await fetch(`${API_URL}/upload`, {
method: 'POST',
body: formData,
});