22.03.2024, 08:42
This is the server side log.
The guy who manages the FTP server didn't give me much information but it seems that by putting require_ssl_reuse=NO in the vsftpd.conf configuration file and maybe some firewall tweaks, the backup file is entirely transferred but always with this error: 426 Failure reading network stream.
Now if I try to send a 2 MB .csv file with this code, I always get a file truncated to multiples of 8192 and I need advice on how to correctly send a file via FTPS.
thanks for your patience
The guy who manages the FTP server didn't give me much information but it seems that by putting require_ssl_reuse=NO in the vsftpd.conf configuration file and maybe some firewall tweaks, the backup file is entirely transferred but always with this error: 426 Failure reading network stream.
Now if I try to send a 2 MB .csv file with this code, I always get a file truncated to multiples of 8192 and I need advice on how to correctly send a file via FTPS.
thanks for your patience
Code:
-- ...
data = io.readfile('filename.csv')
path = ('/' .. filename)
res, err = ftp.put({
host = host,
user = user,
password = pass,
argument = path,
type = "a",
secure = true,
datasecure = true,
source = ltn12.source.string(data)
})