Questions tagged [ftp]

File Transfer Protocol (FTP) is a well-established protocol for conducting file operations (such as transferring files) over a TCP-based network such as the Internet.

File Transfer Protocol (Wikipedia article) is a protocol, governed by well-established Internet standards, for conducting file operations (e.g. transferring files between two systems) over a TCP-based network such as the Internet or a local area network. FTP employs a client-server architecture, where one system is the "client", which opens a connection to the other system, the "server", the client makes requests of the server, and then closes the connection.

The most common FTP operations that a client will initiate include downloading files (i.e. "get" files from the server) and uploading files (i.e. "put" files on the server). But there are a variety of file system related commands that the client may make of the server (e.g. making directories, renaming files on the server, deleting files from the server, etc.).

14199 questions
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
5 answers

How to list directory content of remote FTP, recursively

After downloading files from a remote UNIX FTP server, you want to verify that you have downloaded all the files correctly. Minimal you will get information similar to "dir /s" command in Windows command prompt. The FTP client runs on Windows.
edygunawan
  • 243
  • 1
  • 2
  • 4
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
24
votes
4 answers

Javascript read html from url into string

I'm currently building a site that should be able to function as a ftp sort of browser. Basically what I have is a ftp server with some images on it. What I can't figure out is: if I browse to this ftp site I can view the source of the ftp site (as…
Chizpa
  • 331
  • 2
  • 3
  • 10
24
votes
7 answers

Upload file on FTP

I want to upload file from one server to another FTP server and following is my code to upload file but it is throwing an error as: The remote server returned an error: (550) File unavailable (e.g., file not found, no access). This my…
R.D.
  • 7,153
  • 7
  • 22
  • 26
23
votes
1 answer

Writing a Java FTP server

I am trying to write a code that opens an FTP server on my stand-alone so I could copy file from it to a client in another computer and the opposite, but I am very new to server side programming and don't understand how. I got the Apache FtpServer…
moshe
  • 439
  • 2
  • 6
  • 16
23
votes
4 answers

PHP FTP ftp_nlist not working, returning boolean false

I have a little problem with this pice of code. The script connects, but it wont give me the folders that are located in root ... i am missing something? $ftp_server = "ftp.something.com"; $ftp_user = "user"; $ftp_pass = "pass"; …
Master345
  • 2,250
  • 11
  • 38
  • 50
23
votes
9 answers

How can I use FTP to move files between directories?

I have a program that needs to move a file from one directory to another on an FTP server. For example, the file is in: ftp://1.1.1.1/MAIN/Dir1 and I need to move the file to: ftp://1.1.1.1/MAIN/Dir2 I found a couple of articles recommending use…
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269
23
votes
2 answers

Copying a file using 2 disks with Laravel

I have 2 disks in Laravel. One is the local disk, the other one is a FTP server which I need to upload my files to. They are both correctly configured. I have attempted it this way: Storage::disk('FTP')->copy('old/file1.jpg',…
prgrm
  • 3,734
  • 14
  • 40
  • 80
23
votes
4 answers

How to setup FTP on xampp

i want to make a server using xampp. i have already installed xampp and setting port 8080. php and mysql work fine but i can't access ftp from internet. Can you please suggest way how can I do this?
Imrul Hasan
  • 281
  • 1
  • 3
  • 4
23
votes
1 answer

Ruby on Rails - Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8

I have a process that fetches a flat file from a mainframe via FTP. This usually works fine for some files. In others, I get: Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8 That's using Net::FTP's gettextfile method. Here is my…
Dvex
  • 921
  • 2
  • 11
  • 35
23
votes
7 answers

PowerShell Connect to FTP server and get files

$ftpServer = "ftp.example.com" $username ="validUser" $password ="myPassword" $localToFTPPath = "C:\ToFTP" $localFromFTPPath = "C:\FromFTP" $remotePickupDir = "/Inbox" $remoteDropDir = "/Outbox" $SSLMode =…
user2744565
  • 243
  • 1
  • 3
  • 11
23
votes
3 answers

ftp: Name or Service not known

in command line > ftp ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/data/ Work on one computer but does not work on my other one. Error returned ftp: ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/data/: Name or service not known I also tried the…
Scicare
  • 833
  • 5
  • 13
  • 26
23
votes
3 answers

Pushing from GitHub to a Web Server

I am wanting to move all of my sites to GitHub for all of the obvious benefits. I am not a big fan of the command line, so I like GitHub because it allows me to avoid touching all of that. Setting up a repository on GitHub and then syncing it with…
Andrew
  • 1,121
  • 4
  • 15
  • 24
23
votes
7 answers

Get list of files from FTP server

I'm trying to get a list of all the files we have on a server ( specifically every pdf file we have there ). I've tried using total commander and search for the files. It worked to some extent, as in, i got a list of every pdf we had there, but no…
Raz
  • 682
  • 1
  • 7
  • 19