0

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".

  1. How to allow for this kind of upload?
  2. Why is is it sayind fakepath where there is actually a path for this file named differently?
2

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.