title: I want to load an in vue that has been by post request using flask and response is its path
body: <p>I already have tried many methods available on StackOverflow. Most of them ask to use require.context that will load all images path and then use image path that I have got from post response.</p>
  <p>But my problem lies here, I ask user to upload the Image then save it locally in assets folder, process the image and save output in assets folder.</p>
  <p>This image name has to be unique, so I use uuid.uuid4() in python- which is completely random.</p>
  <p>require.context cannot load my image path since it was not available at time when webpack was being complied, Hence the error - Cannot find module '../assets/9a5d60e2-4c2c-4fd9-a617-5dcdde4db6cc.jpg'.</p>
  <pre><code>&lt;TwentyTwenty
          :before=&quot;getImgUrl(resp['original'])&quot;
          :after=&quot;getImgUrl(resp['dreamed'])&quot;
          beforeLabel='Orignal'
          afterLabel=&quot;Dreamed&quot;
          keyboardStep=0.01 /&gt;
  
  getImgUrl(pet) {
          var images = require.context('../assets/', false, /\.jpg$/)
          return images('' + pet + &quot;.jpg&quot;)
      }
  </code></pre>