Forums

How to get the uploaded profile picture shown on flask user settings page

The picture should show up here

Our static file url/path

Python UPLOAD_PATH = '/home/pillio/mysite/static/userimages''

HTML CODE WHERE IT SHOULD SHOW UP : <div>

           <label for ="Picture">

               <img src="{{current_user.image}}" alt="Your Uploaded Picture" width="240" height="240">
           </label>
             ##current_user.image has the image path and it varies based on user ##

</div>

But after uploading, instead of showing up, nothing shows up. but if you right-click and visit the URL, it says https://pillio.pythonanywhere.com/home/pillio/mysite/static/arctic_zone.png, but https://pillio.pythonanywhere.com/static/arctic_zone.png has the picture.

How can I get the user picture to show up? i tried doing everything ik and it didn't work.

is the page reloaded after the upload?