Questions tagged [ftp-client]

is for questions dealing with the clients used for the file transfer protocol.

FTP, or File Transfer Protocol, is a way of exchanging files over a network. It uses a client-server architecture with dual connections between them; one for control and one for data.

FTP Wikipedia Article

732 questions
43
votes
5 answers

How to set up FTP on Azure VM

I need some help setting up FTP on my Azure VM instance. The VM is Windows Server 2012 R2. I have set up the Web Server Role and created an FTP site in IIS. I have confirmed that I can access the FTP server with ftp command: open localhost I…
ChiliYago
  • 11,341
  • 23
  • 79
  • 126
41
votes
4 answers

Apache Commons Net FTPClient and listFiles()

Can anyone explain me what's wrong with the following code? I tried different hosts, FTPClientConfigs, it's properly accessible via firefox/filezilla... The problem is I always get empty filelist without any exceptions (files.length == 0). I use…
Vladimir Mihailenco
  • 3,382
  • 2
  • 24
  • 38
27
votes
8 answers

FTPClient - Java, upload file

I'm trying to do a VERY simple file upload. I want a Java FTPClient that can upload any file I tell it to. But the pdf always gets all messed up and my pdf editor (Adobe) won't open it, saying there is an I/O error. I'm using the following class: …
CodeGuy
  • 28,427
  • 76
  • 200
  • 317
25
votes
5 answers

Secure FTP with org.apache.commons.net.ftp.FTPClient

Is there a way I can implement a secure FTP with org.apache.commons.net.ftp.FTPClient? If not, what are other options for Java?
user1725253
  • 329
  • 1
  • 4
  • 13
24
votes
4 answers

Apache Commons FTPClient Hanging

We are using the following Apache Commons Net FTP code to connect to an FTP server, poll some directories for files, and if files are found, to retrieve them to the local machine: try { logger.trace("Attempting to connect to server..."); // Connect…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
22
votes
5 answers

FTP client in .NET Core

Can I download file / list files via FTP protocol using netcoreapp1.0? I know, I can use FtpWebRequest or FluentFTP if I target full .net45 framework. My solution, however, is all based on .NET Standard 1.6 and I don't want to support full framework…
Sergei Rudakov
  • 558
  • 1
  • 4
  • 11
20
votes
7 answers

Apache Commons FTPClient.listFiles

I am using org.apache.commons.net.ftp.FTPClient in one of my applications to work with a FTP server. I am able to connect, login, pwd and cwd. However, when I try to list the files it doesn't return the list of files in that directory, where I know…
Shyam Kumar Sundarakumar
  • 5,649
  • 13
  • 42
  • 69
19
votes
5 answers

FtpClient storeFile always return False

Please figure this out. The code runs properly without any exception. try { FTPClient ftp = new FTPClient(); ftp.connect(server); if(!ftp.login(username, password)) { ftp.logout(); return false; } int reply =…
RaviKiran
  • 585
  • 2
  • 7
  • 16
19
votes
1 answer

Schedule automatic daily upload with FileZilla

I would like to use FileZilla to automatically upload PDFs to my GoDaddy hosted site daily, replacing the previous day's sheets. Is there any way to do this? I read online that batch files might work, could someone post a sample version of a batch…
ajs
  • 335
  • 4
  • 5
  • 14
17
votes
4 answers

how to delete file from ftp server using java?

How can I delete a file from an ftp server using a java program? I am successfully able to upload files on the ftp using the following code: public static void main(String[] args) throws IOException { // TODO Auto-generated method stub …
awareeye
  • 3,051
  • 3
  • 22
  • 22
15
votes
2 answers

FTP response 421 received. Server closed connection

I am writing a JAVA code to traverse FTP Location using Apache Commons Net FTPClient and getting output in an Excel file. the code execute correctly for approx 5 min but then gives an…
14
votes
2 answers

How does Dropbox work?

How does Dropbox work? Is it just an FTP client with an easy-to-use web interface and support for many plarforms? What makes it so useful to programmers, even for those who are working on web-based applications and who have FTP access to a server by…
dole doug
  • 34,070
  • 20
  • 68
  • 87
14
votes
4 answers

How to copy a file on the FTP server to a directory on the same server in Java?

I'm using Apache Commons FTP to upload a file. Before uploading I want to check if the file already exists on the server and make a backup from it to a backup directory on the same server. Does anyone know how to copy a file from a FTP server to a…
itro
  • 7,006
  • 27
  • 78
  • 121
13
votes
1 answer

LFTP active mode with servers that do not recognize the PORT command

I am using LFTP to transfer files from a server, which unfortunately does not recognize the PORT command. I do not have control over the server (do not know in detail what server is) and I have to use the active mode. This is the command line…
Marco
  • 1,642
  • 3
  • 16
  • 29
10
votes
3 answers

FTP "ls -lt" command: How does it list the file details for Linux FTP and Windows FTP server?

I am writing FTP client that should work for at least Windows and Linux FTPs. BUt before I proceed, I want answer to these questions. In which order files are listed when FTP ls -lt command is used for the FTP server on the Linux? Is there any…
Learner
  • 4,661
  • 9
  • 56
  • 102
1
2 3
48 49