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 settings
client.AutoConnect();
// upload a file
client.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.
New contributor
bhoske is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.