I have an <input type="file">
to upload an image file.
The project I work on have CSP settings and what I'm currently getting is this:
Refused to load the image 'c:\fakepath\avatar.jpg' because it violates the following Content Security Policy directive: "img-src * 'self' data: localhost:7331".
- How to allow for this kind of upload?
- Why is is it sayind
fakepath
where there is actually a path for this file named differently?