Custom WebView File Access issue

image

Hello, when I want to change the user picture on a site in an application, there is a file link, but the photo I selected does not appear in the profile picture of the site, it seems that it is not uploaded there … how can I solve this? Code block is available above

Example

This method does not work all the time.
Maybe you can search in the community and find a better and working method.