Questions tagged [ftp-client]
is for questions dealing with the clients used for the file transfer protocol.
723
questions
1
vote
0
answers
26
views
NodeJS FTP not throwing error when trying to delete non-existent file
I am working with ftp-npm and I am currently facing a weird bug...
I have a method called refreshStore that contains this part of code :
c.delete('/pathToMyFileOnFTPServer', function(err) {
...
1
vote
0
answers
17
views
"Cannot read properties of undefined (reading 'get')" ftp nodeJS [duplicate]
I am struggling with this error since yesterday :
Cannot read properties of undefined (reading 'get').
I am using ftp NodeJS module. I have instanciated an c attribute in my class like this :
...
0
votes
0
answers
130
views
.Net 6: Correct way to create a FtpWebRequest-object
In C# using .Net6 we can interact with an FTP-server using an FtpWebRequest-object. This works well. But how should we create this object?
Currently we use WebRequest.Create()
and Microsoft says we ...
0
votes
1
answer
26
views
Apache commons FPTSClient explicit transfer file is incomplete
Iam currently struggling a little bit with the FTPSClient from Apache Commons. See code down below. I try to write a file to FTP Server (vsftpd) when using FTPClient things are working perfectly fine. ...
0
votes
0
answers
257
views
How to handle "Background concurrent copying GC freed" to keep or increase the app performance?
During testing an android app on a real device, I need to list the remote directory contents on a ftp server recursive
with the method below via FtpClient from the Apache Commons Net 3.8.0 library.
...
0
votes
0
answers
32
views
Java FTPClient listing or retrieving file is working from Windows not working from Linux - hanging at listFiles()
ftp.connect(host, 21);
System.out.println("successfull connected");
ftp.login(user, pass);
ftp.changeWorkingDirectory(dirPath);
System.out.println("successfull logged in");
...
0
votes
1
answer
84
views
Apache FTPClient.retrieveFileStream(String) returns null
I am using Java 11 and SpringBoot. I am trying to create a FTPClient to read files from an existing FTP server. Using Apache FTPClient.
Problem:
InputStream is = ftp.retrieveFileStream(file.getName()...
0
votes
0
answers
53
views
Do we have support for TLS 1.3 in .NET Framework v4.8?
We have an FTP Client written in .NET Framework v4.8 using TCP. We notice that the our FTP client application does not connect an FTP Server that has TLS 1.3 support. We are running the FTP Client in ...
0
votes
0
answers
13
views
Does anybody knows a (freeware) FTP upload service
I'm looking for a tool to automatically upload local files to a remote FTP Server.
The requirements are:
Has to run on Windows (Server)
should run as a Windows Service in background...
Should scan an ...
0
votes
1
answer
153
views
Download FTP file to S3 through AWS Glue, S3 path is not recognized
on a AWS Glue Job, I'm using ftplib to download files and store them to S3, with the following code:
from ftplib import FTP
ftp = FTP()
ftp.connect("ftp.ser.ver", 21)
ftp.login("user&...
0
votes
1
answer
106
views
Cannot connect to S3 bucket via Transmit, only via AWS CLI
I have this S3 bucket that I can connect to through AWS CLI. First I go to Terminal and set it up:
aws configure
AWS Access Key ID [****************]: ACCESS_KEY
AWS Secret Access Key [****************...
0
votes
0
answers
170
views
Error connecting to ftp server through goftp
I'm trying to connect to an FTP server and upload a file for test. (I'm new to FTP as well as golang.)
Below is the code I'm using to Dial a connection and upload a file.
package main
import (
&...
0
votes
1
answer
48
views
FTPClient.connect always waiting
public static FTPClient connect(String hostname, int port, int mode, String encoding) {
FTPClient ftpClient = null;
try {
ftpClient = new FTPClient();
//FTPClient....
0
votes
1
answer
34
views
Apache Commons FTPClient Not Retrieving All Bytes From Source File [duplicate]
I have a fairly basic 3.8.0 FTPClient use case:
FTPClient ftpClient = new FTPClient()
ftpClient.connect(hostName, hostPort)
if(FTPReply.isPositiveCompletion(ftpClient.getReplyCode())) {
ftpClient....
0
votes
1
answer
85
views
Get FileInputStream from uri to upload image
I am successfull in getting image from Gallery or Camera without WRITE_EXTERNAL_PERMISION AND READ_EXTERNAL_PERMISION
Now I want to upload that image to FTP Server
ImageSetter.kt
class ImageSetter(
...
3
votes
1
answer
581
views
Uploading a file to testcontainer FTP server fails with Connection refused after being connected
I'm working with FTPClient against an FTP server using Testcontainers.
A reproducible code sample is here:
import org.apache.commons.net.PrintCommandListener;
import org.apache.commons.net.ftp.FTP;
...
1
vote
1
answer
44
views
Understand programmatically if ftp client will fetch a dataset from zOS with RDW or without
If I connect using FTP to zOS, I can run rstatus command and in 68 lines returned I get one of the two following human readable lines:
RDWs from variable format data sets are discarded.
RDWs from ...
0
votes
0
answers
6
views
Parallel communiocation with Java Apache FTPClient
In my program to transfer files from the FTP server to our storage server using Apache FTPClient. I am getting the InputStream for the file in the FTP server and the file size which I am using to ...
0
votes
1
answer
187
views
use FTP (only option) to sync files in a directory with a single line command in linux
I need to synchronize files in my computer with server to which I have only FTP access and I would prefer a single line to add to crontab which checks every day that new or updated files are ...
0
votes
0
answers
101
views
DJANGO-STORAGES, PARAMIKO: connection failure for global connection
I have a strange problem using the SFTP-API from django-storages(https://github.com/jschneier/django-storages). I am trying to use it in order to fetch media-files, which are stored on a different ...
0
votes
1
answer
219
views
Detecting FTP server file name encoding using Apache Commons Net
Is there a simple way to get or detect FTP server file name encoding using Apache Commons Net?
Why FileZilla client can always get right encoding and show right file name? How does it do that?
0
votes
0
answers
84
views
Apache Commons-Net v.3.7.2 FTPClient get files from remote server ZERO size
I am trying to use Apache Commons-Net library version 3.7.2 to get/put data from/to remote servers.
To get data I implemented this code :
ftpClient.connect(server, port);
ftpClient.login(...
0
votes
0
answers
216
views
smbprotocol.exceptions.LogonFailure: Received unexpected status from the server:
server:
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
authorizer = DummyAuthorizer()
authorizer.add_user("...
0
votes
0
answers
225
views
No converter for [class org.springframework.mock.web.MockMultipartFile] with preset Content-Type 'null']
I have a FTP Client with files in it and i have a RestController where I call an endpoint to get a file from the Server. When i send it i don't want the file to be saved on the machine but i have this ...
0
votes
2
answers
76
views
Efficient way to load large json object with ftp:///
I have a large json object (up to 200 MB or more). It stores the values required to render graph by plotly.js.
I have tried to incorporate the json object into html by using text/javascript and ...
0
votes
1
answer
193
views
golang FTP PASS (password) command works locally, but doesn't while running on ECS
I have a go server that uses github.com/jlaffaye/ftp library for getting FTP files from a remote server.
I first of all get the connection
conn, err := ftp.DialTimeout(cfg.Host+cfg.Port, time....
0
votes
0
answers
170
views
Connection to FTP server works from Filezilla but returns 530 from ftpClient Apache Commons in Android
I want to send some files to an FTP server from Android. I have the server IP address, username, and password. I tried to connect to it from Filezilla and it works, however, if I try to connect from ...
0
votes
1
answer
204
views
How to check if FTP server is alive?
I need to check if a FTP server is alive, is this server:
ftp://speedtest.tele2.net/upload/
I tried with this code:
FTPClient ftp = new FTPClient();
try {
ftp....
0
votes
1
answer
111
views
FTPClient.storeFile() Began Failing [duplicate]
I have a Java program that uploads new/changed files to my Web site via FTP. It currently uses the Apache Commons Net Library, version 3.8.0.
After moving to a new city, the program, which I’ve been ...
0
votes
1
answer
1k
views
List FTP files with goftp
I am trying to write a simple Go program which connects to an FTP server, list the files in a specified directory and pulls them.
The code is this:
package main
import (
"bytes"
&...
0
votes
0
answers
72
views
Connecting to an Ftp client works for one program but not for the other
I have written an application (in Delphi) which connects to an FTP server.
My application gets timeout error when connecting
Connecting to the same Ftp server with Total Commander with the same ...
1
vote
1
answer
122
views
Preventing fetching the same file from FTP server using multiple FTP clients in Java
I have multiple FTP clients that will periodically look for new files on the FTP server. Now, if one of the client fetches a file for further processing, I want to move it to some other directory (say ...
0
votes
1
answer
171
views
Problems uploading folders containing files to FTP Server Python
I am developing a FTP client and Server written in python. In my client's local directory it contains a folder containing many sub folders (E.G: C:/PatientRecords/A/, C:/PatientRecords/B/). Inside the ...
1
vote
1
answer
43
views
OneM2M: Get Notification once a file loads on FTP server [closed]
I have a device that sends data to a FTP server. In OM2M, I want to implement an IPE to access this data and send it to MN-CSE.
Currently I am fresher on oneM2M standards And as per the below ...
0
votes
0
answers
28
views
write on FTP file without overwrite previous text ftplib python [duplicate]
I'm trying to write on hosted file from python, so I chose to use ftplib module.
So far i got this code
from ftplib import FTP
import io
ftp = FTP('ftp.myhostname.com')
ftp.login('myusername','mypass')...
1
vote
1
answer
246
views
Apache commons net FTPClient storeFile() creating file with the username prefixed
Happy New Year! :)
So, I'm using the Apache Commons FTPClient for the first time to FTP a file to the Mainframes FTP server. I have the code below to setup required configurations and eventually FTP ...
0
votes
1
answer
396
views
FTP No Transfer Timeout While Transferring - Python ftplib
Not very knowledgeable with FTP Servers... Transferring a large amount of data (in textual format) from the NOAA (National Oceanic and Atmospheric Administration) FTP server and inserting it to a SQL ...
-1
votes
1
answer
603
views
Why doesn’t my website update even though the file has been uploaded successfully? (FTP)
I have been trying in vain to update my website. I use the following information for a connection:
server
name + password
port
SFTP
When I save the file, I get a message that the file was uploaded ...
1
vote
1
answer
243
views
C# connecting explicit FTP using system.net.FtpClient - certificate error [duplicate]
I am using the System.Net.FtpClient
and I an trying to connect to a server (don't have access to the code in server).
when I connect using Winscp/Filezile I succeeded to connect.
however when I am ...
1
vote
1
answer
109
views
Apache Camel as file explorer
I need a way to show the content of a (remote) directory and, since the main application makes an intensive use of Apache Camel, I would like to rely on Apache Camel once more to accomplish this task.
...
0
votes
1
answer
231
views
Using socket.py to make a List request towards the FTP server and get file list
I need to make a request to a specific FTP server and make a LIST/NLST request to get the list of all files (i want to start with at least current dir) without using libraries like ftplib, using only ...
2
votes
1
answer
653
views
WinSCP .NET library FTP transfer fails with "IP addresses of control and data connection do not match"
I have implemented FTP code with use of WinSCP .NET assembly and hosted it on an Azure AppService.
It works locally and on Azure.
But in very few random times, when hosted on Azure, it throws the ...
0
votes
1
answer
278
views
Creating a web UI for an ftp file server that can archive folders as ZIP to download
I'm trying to create a file server to serve a bunch of files for download and have a web-based UI to search/filter and download the files.
Right now i'm using a basic FTP server and i'm planning to ...
-1
votes
1
answer
193
views
AIX 7.1 anonymous ftp fails
I have a "vsftpd" server running on a RHEL machine which is configured for anonymous communication.
I am trying to connect to it from a AIX 7.1 machine using ftp client.
ftp -snv host 8043
...
1
vote
1
answer
752
views
The remote server returned an error: (550) File unavailable (e.g., file not found, no access) in .NET
I am trying to upload an image to FTP server. But I'm getting an error
The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
Here is my code:
public void ...
0
votes
1
answer
144
views
How to move all files from a directory(including subdirectories) to a specific directory without subdirectories in target using camel route over FTP?
As I am very new to Apache-Camel, I stuck with a use case.
I want to achieve moving of all files to a specific directory without sub-directories in target using camel route,
for example-
...
0
votes
1
answer
298
views
org.apache.commons.net.ftp.FTPClient listFiles always returns files from root directory irrespective of the pathname given in argument
listFiles in the class FTPClient is always returning the directories or files from the root directory, even when the path is given as argument.
public static void main(String[] args) {
String ...
1
vote
0
answers
545
views
Upload file to ftp server using node js
I am trying to upload file from my local machine to ftp server using node js. Below is the code i have tried. i am getting error as "getaddrinfo ENOTFOUND https://owncloud.askgroup.co.in/remote....
2
votes
0
answers
1k
views
Connection cannot be established to FTP server using nodejs
I´m currently trying to connect to a FTP server using the nodeJS lib basic-ftp. It seems that a connection was established, but I cannot perform a single operation or even output a log statement after ...
-1
votes
1
answer
216
views
I am getting java.net.SocketTimeoutException while executing java file transfer program using jcraft-Jsch api but working with other API
I am getting java.net.SocketTimeoutException while executing java file transfer program using jcraft-Jsch api but working with other API like apache with same connection details.
I am able to connect ...