Displaying image using File upload

I want users to upload an image and then display it. I used Fileupload() but image is not being displayed.What should I do?

1 Like

You only need a FileLoader component and an Image component.
On change of the FileLoader, set the image source to the FileLoader’s file:
self.image_1.source = self.file_loader.file

A file is selected but not visible.

1 Like

same for me.It is not visible

Just a hunch, but when is your code executing the following line:

?

Is it after self.file_loader.file has completed its upload? Or before?