Paolo De Feo
Paolo De Feo

Reputation: 3

Uploading files to a web hosting (godaddy) through c #

I'm here to ask you for help.

I need that my c # application can upload a file to a folder located in my website hosted by godaddy.

Now I'm using a FtpWebRequest to do this but I need to set the ftp credential and this means that everyone can see the FTP account and password ...

The same for another function that I need, I need to download a file from a webserver but the url is visible! I'm using the WebClient.OpenRead method to do this.

Hope someone can help me.

Thank you.

Upvotes: 0

Views: 384

Answers (1)

user16418131
user16418131

Reputation: 11

Microsoft doesn't recomment FtpWebRequest (see-> https://learn.microsoft.com/en-us/dotnet/api/system.net.ftpwebrequest?view=net-6.0).
They recommend alternatives (read here: https://github.com/dotnet/platform-compat/blob/master/docs/DE0003.md)
-> For FtpWebRequest: use third party FTP client (e.g. from this list).
It appears FluentFTP has FTPS client (see: https://github.com/robinrodricks/FluentFTP)

Seems like someone already answered this question. Again, see this answer-> Free FTP Library

Upvotes: 1

Related Questions