Fixes bug in upload controller where images are overwritten.
Instead of checking file existence, checks db entry since all images are only linked to entities via db this should suffice.
to test: upload images of different format to same entity and see that they do not get overwritten.
Also adds some tests for upload controller
to test only these run: npm run test:e2e upload
Fixes bug in upload controller where images are overwritten. Instead of checking file existence, checks db entry since all images are only linked to entities via db this should suffice.
to test: upload images of different format to same entity and see that they do not get overwritten.
Also adds some tests for upload controller to test only these run: npm run test:e2e upload
Also updates some packages to test: test
closes #140