Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor server-side file upload to remote location

$
0
0

I want to upload file to a remote file server that is protected with username and password

in ASP.NET i was suggested to use

SecurityManager sm = new SecurityManager();sm.UserName = ConfigurationManager.AppSettings["sharedUsername"];sm.Password = ConfigurationManager.AppSettings["sharedPassword"];sm.StartImpersonation();if (File.Exists(Server.MapPath("~/xxxxxx/" + filename.Trim())))//do some stuffsm.EndImpersonation();

But in the blazor server-side (.NET8), this doesnt work

So if somebody has any idea, please, dont be shy :)


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>