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

How to get the path of the file selected in ? Blazor Server Application

$
0
0

I need to get the path of the file that the user selects in the <input file> event to send the file to the API using FluentFTP. I am using FTP to upload the file to the server. follow the example:

// create an FTP client and specify the host, username and password // (delete the credentials to use the "anonymous" account) var client = new FtpClient("123.123.123.123", "david", "pass123");// connect to the server and automatically detect working FTP settingsclient.AutoConnect();// upload a fileclient.UploadFile(@"C:\MyVideo.mp4", "/htdocs/MyVideo.mp4");

From my research, there is no way to find the exact path, but I would be grateful if you could give me another solution for this type of situation.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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