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
3
votes
1 answer

Attach file existing on FTP server to mail in C# .NET

I am trying to attach a file saved on an FTP Server to a SMTP mail message. mail.Body = body; System.Net.Mail.Attachment attachment; attachment = new…
Zayd Chopdat
  • 77
  • 1
  • 8
3
votes
1 answer

How to list FTP directories using telnet?

I installed FileZilla ftp server on one of local server in local network. I can successfully list folders for user user using ftp command (actually I installed Ubuntu in windows 10 through Microsoft store). ftp -p 192.168.11.24 21 Connected to…
broadband
  • 3,266
  • 6
  • 43
  • 73
3
votes
1 answer

How to use the FTP to upload a small file or an image in android studio using Kotlin

I am trying to create an app that needs to upload some images and text files to my server which supports FTP. I am from a python background and have used FTP a lot in the past but I am pretty confused while using it in Kotlin any help will be…
BigZee
  • 456
  • 5
  • 22
3
votes
1 answer

C# - Ftp protocol implementation

in Compact Framework, the Ftp Protocol is not implemented so I developed it myself. I've a question about the passive mode and commands that need to have a data channel to read the response. In my case, I'm trying to retrieve (RETR) a file on my FTP…
Arnaud F.
  • 8,252
  • 11
  • 53
  • 102
3
votes
3 answers

ftplib storbinary with FTPS is hanging/never completing

I am trying to upload a file to an FTP site using FTPS, but when I attempt to store the file, it just hangs after the file is fully transferred. global f_blocksize global total_size global size_written f_blocksize = 1024 total_size =…
ryansin
  • 1,735
  • 2
  • 26
  • 49
3
votes
1 answer

Error on bitbucket pipelines with SSH

I have the key generated by bitbucket, so their format should be correct. However, when I try to access it, it say SSH public key authentication failed: Unable to extract public key from private key file: Method unimplemented in libgcrypt…
3
votes
1 answer

Ftplib ConnectionRefusedError: [Errno 111] Connection refused (python 3.5)

I have a script that should connect to a FTP from ftplib import FTP with FTP('IP') as ftp: ftp.login(user='my user', passwd='my password') ftp.cwd('/MY_DIR') ftp.dir() I have an error : ConnectionRefusedError: [Errno 111] Connection…
RonanT
  • 156
  • 2
  • 14
3
votes
1 answer

Generate CSV file on an external FTP server in PHP

I have some PHP code that successfully exports a MySQL table to a CSV file. I would like to add to that code, so instead of saving locally the CSL file is exported to/saved on an external FTP server. My current code: //open database connection …
EllBrandon
  • 103
  • 2
  • 11
3
votes
1 answer

Create folder on FTP server in directory where PHP script is

I use Current PHP version: 7.1.4 for Ionic2 application back-end. I'm trying to create folder on my ftp server in the same directory, where directory.php located itself. After link to http://site/php/directory.php echo: Successfully created…
user8667024
3
votes
1 answer

Create folder on FTP server with PHP

I use Current PHP version: 7.1.4 for Ionic2 application back-end. I'm trying to create folder on my ftp server. With direct link to php file http://site/php/directory.php echo is Successfully created images After this, folder images does not…
user8667024
3
votes
4 answers

Edit a text file over FTP in C#?

I want to, basically, use the following code to edit a C# file: var file = new StreamReader("ftp://xxx.xxx.x.x/xxx.txt"); //[ip address/file] label1.Text = file.ReadLine(); file.Close(); var fw = new…
MatthewSot
  • 3,516
  • 5
  • 39
  • 58
3
votes
1 answer

Fetching last modified date of a file in FTP server using FTPClient.getModificationTime yields null

I am trying to fetch last modified date of a file from FTP environment.The result is not as expected. By using ftpClient.getModificationTime("File path") I am getting null. By using FTPFile.getTimestamp().getTime() I am getting wrong last modified…
Ayush
  • 206
  • 7
  • 22
3
votes
2 answers

Connect to FTP server through http proxy

My code belove gives me the error: socket.gaierror: [Errno 11001] getaddrinfo failed when calling the method ftp.connect(). My question is: why can I connect to google.com but when connecting to an ftp server it gives me error? And how I can connect…
patski
  • 329
  • 6
  • 15
3
votes
2 answers

FTP multiple files in C# without reestablishing connection

The FTP protocol is designed to support a control channel, and use that control channel to tell the server to open TCP connections and transfer files. The server sending or receiving files does NOT have to be the same as the server that the FTP…
SpacemanScott
  • 953
  • 9
  • 21
3
votes
1 answer

Uploading files to an FTP server via a batch file

I need to upload a set of .txt files to an FTP server using a .bat file. So far, I've managed to connect to the FTP server, including the correct directory that I need to put the file into and then disconnect. However, it isn't uploading the…
David
  • 2,298
  • 6
  • 22
  • 56