-
html DevTools error: disable web security: DevTools error: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
You could use a static file server in background to hold these images. app.Static("/img", "d:\\Downloads") Then use something like or you can just move |
Beta Was this translation helpful? Give feedback.
-
Is there a solution now? I also encounter this kind of problem now. I want the user to choose a local picture and then display it. |
Beta Was this translation helpful? Give feedback.
-
I was attempting to use the AssetServer middleware to load images (e.g. jpeg files) from a directory using an absolute path, but it did not work until I changed this line: |
Beta Was this translation helpful? Give feedback.
-
I am trying to create a PR but I don't understand where to make the changes |
Beta Was this translation helpful? Give feedback.
You could use a static file server in background to hold these images.
Then use something like
<img src='http://localhost:3000/img/1.jpg' />
or you can just move
1.jpg
to you frontend assets folder and use<img src='@/assests/1.jpg' />
to hold a image