馃悰 [Bug] Image upload is not working in local development environment
Created by: Mogge
馃悰 Bugreport
When setting up the local dev env without docker, the image upload is not working.
Error message: GraphQL error: a ReadStream cannot be created from a destroyed WriteStream
.
The cropping of images is not working as well.
When using docker, everything is working fine.
Steps to reproduce the behavior
- Create a new post
- Fill in all necessary fields
- Upload an image, crop it and click on confirm
- Save the post
Expected behavior
The image should be saved in the backend/public/uploads
folder. A success message should be toasted.
Version & Environment
Local development without docker on current master. I tried earlier versions back to 2 months and the same problem occurs. I tried the behavior on the master of the HC repository and the same error occurs. So it has nothing to do with the cloning.
Additional context
file: backend/src/schema/resolvers/images/images.js
The promise in line 115 provokes the error.