Questions tagged [fluentftp]

For questions about the FluentFTP library for .NET.

GitHub repo: https://github.com/robinrodricks/FluentFTP

62 questions
0
votes
1 answer

Catch Access Denied Exception on FluentFTP

I am trying to catch the Access Denied Exception when trying to upload a file via FTP using FluentFTP try { client = new FtpClient(serverName, userName, password); client.AutoConnect(); client.RetryAttempts = 3; …
0
votes
1 answer

Read FTP file contents to a string in C# FluentFTP

My class inherits from FluentFTP and I have created a class like this. I need to create a function called Read in this class. The purpose of the read function is to return a string to me by reading the contents of the files I have read from the FTP…
Berkay Kulak
  • 43
  • 2
  • 9
0
votes
1 answer

FluentFTP EPSV Error 425 Can't open data connection for transfer of "/test.csv"

I'm trying to upload a file with the .NET Library FluentFTP using EPSV connection type because I'm behind a HTTP/1.1 proxy and data and control FTP IP addresses are different. Unfortunately I get the following error when calling the UploadFile…
Nagelfar
  • 803
  • 2
  • 8
  • 21
0
votes
1 answer

c# FluentFTP, download only the last folder in the given path

I'd like to download folder with c# FluentFTP library. The folder is downloaded but I'd like to have in my machine only the last folder in the given path. List res = client.DownloadDirectory(tmpFolder, "play_files\\test_folder\\",…
hous
  • 2,577
  • 2
  • 27
  • 66
0
votes
1 answer

FluentFtp async methods not workng

I am downloading a file from an ftp usin FLuentFtp. If I call the synchroneous methods: client.Connect(); var status = client.DownloadFile(localPath, ftpPath); then it works but the asynchroneous versions namely: await…
G Aker
  • 109
  • 4
0
votes
1 answer

zero byte file on FluentFTP upload

I try to upload files and wrote the following code with the help of FluentFTP: clientFluentFTP = new FtpClient(hostname, username, password); …
Hans Rottier
  • 102
  • 2
  • 12
0
votes
1 answer

Problem connection to FTP server using FluentFTP from Ubuntu

I am using this code to attempt to establish a FTP connection to a Windows FTP Service FtpClient client = new FtpClient(ip, user, password); client.ConnectTimeout = 600000; client.ReadTimeout = 60000; client.EncryptionMode =…
jmiguel77
  • 824
  • 9
  • 19
0
votes
0 answers

Stream files directly to new ZIP archive to save memory with FluentFTP

In my file manager, I need to offer the capability of downloading files. I need to be able to select both individual files but also directories. This could be an example: /www/index.html /www/images/ /www/styles.css If I select those 3 items (2…
MortenMoulder
  • 6,138
  • 11
  • 60
  • 116
0
votes
1 answer

FluentFTP. How to stop the download process

I need to make a button that will stop downloading the file. For example, I clicked 1 time the download started and the second time it stopped. private static async void Download() { foreach (string fileName in fileList) …
VillyFiki
  • 129
  • 5
0
votes
1 answer

File permissions exception for Visual Studio Mac

I run Visual Studio on Mac for developing .NET Core. I have problems with file permissions. When I for example use FluentFTP to download a file: client.DownloadFile("/Users/max/temp/download_folder", "remote/path"); I get the following…
Max
  • 488
  • 8
  • 19
0
votes
1 answer

send file stream through http not working

I am using fluentftp library . I have 2 server separately ,FTPserver and WebServer. so my scenario is to download large file from ftp server and send it to my client through http ajax response. i created a webservice .asmx file and a webmethod to…
Dr developer
  • 71
  • 1
  • 2
  • 9
0
votes
1 answer

FTP not listing files on live server with identical setup

I have a WebApi application that runs on IIS. In development it works perfectly reading and writing files. When it is deployed to the live system it will login but not list the contents of the folders. This has worked in the past and I cannot work…
jQueryNut
  • 23
  • 1
  • 6
0
votes
1 answer

How to create an FTP Connection in LINQPad

I want to create an FTP or FTPS connection with LINQPad to an FTP/FTPS Server. I do have the servername and the user credentials.
MovGP0
  • 7,267
  • 3
  • 49
  • 42
0
votes
1 answer

Process cannot access file because its used by another process

So I'm getting exception "Process cannot access file because its used by another process. The exception will show when i call this particular method: public async static Task DownloadFileFromFTP(string PathToFile, string AppName) { return…
Johny Corbie
  • 63
  • 10
0
votes
1 answer

Get last added/copied files from FTP Server using Fluent FTP in c#

I am using below code. (FluentFTP ) but Item.Modified will give the file created Date only. So its rendering based on the copied file created date. (Not when it copied) How will i get Files based on copied/Added Date in Fluent FTP. private static…
developer_.net
  • 196
  • 3
  • 14