Get Absolute Path of files using .NET Core 8 and JS

How can I get absolute path of a file using .NET Core 8 and Vanilla Javascript?

Issue: I need to send absolute path of a to a service for which I need to use only .NET Core 8 Web app and Vanilla JS to allow user to pick a file in file dialogbox and I need to capture it and send the absolute path to that service.

Attempt: I cannot get the absolute path of files using JS as it’s not possible due to security reasons and I also tried to trigger a ajax call to a action method to show OpenDialogBox and compiling the app to windows application, But this scenario won’t work for hosting and deploying scenarios.

Question: How can I get absolute path of files of user choosing? This can be of any possible way within the tech stack I provided.