I use COS to build Python FTP server. It can download files normally, but upload error, and other clients such as xftp/Windows/FileZilla and so on are normal.
Thanks!
PHP Code:
Sat, 17 Nov 2018 11:01:05 cos_file_system.py[line:146] DEBUG current work directory /abc/haha
Sat, 17 Nov 2018 11:01:05 handlers.py[line:1821] DEBUG 60.166.87.82:63951-[nicky1605] -> 250 "/abc/haha" is the current directory.
Sat, 17 Nov 2018 11:01:05 handlers.py[line:1821] DEBUG 60.166.87.82:63951-[nicky1605] <- PWD
Sat, 17 Nov 2018 11:01:05 handlers.py[line:1821] DEBUG 60.166.87.82:63951-[nicky1605] -> 257 "/abc/haha" is the current directory.
Sat, 17 Nov 2018 11:01:05 handlers.py[line:1821] DEBUG 60.166.87.82:63951-[nicky1605] <- TYPE I
Sat, 17 Nov 2018 11:01:05 handlers.py[line:1821] DEBUG 60.166.87.82:63951-[nicky1605] -> 200 Type set to: Binary.
Sat, 17 Nov 2018 11:01:05 handlers.py[line:1821] DEBUG 60.166.87.82:63951-[nicky1605] <- MLST sync.log
Sat, 17 Nov 2018 11:01:05 handlers.py[line:1832] ERROR unhandled exception in instance <CosFtpHandler(id=140467162044752, addr='60.166.87.82:63951', user=u'nicky1605')>
Traceback (most recent call last):
File "/usr/lib64/python2.7/asyncore.py", line 83, in read
obj.handle_read_event()
File "/usr/lib64/python2.7/asyncore.py", line 449, in handle_read_event
self.handle_read()
File "/usr/local/cosftp/pyftpdlib/ioloop.py", line 920, in handle_read
asynchat.async_chat.handle_read(self)
File "/usr/lib64/python2.7/asynchat.py", line 158, in handle_read
self.found_terminator()
File "/usr/local/cosftp/pyftpdlib/handlers.py", line 1414, in found_terminator
self.pre_process_command(line, cmd, arg)
File "/usr/local/cosftp/pyftpdlib/handlers.py", line 1531, in pre_process_command
self.process_command(cmd, arg, **kwargs)
File "/usr/local/cosftp/pyftpdlib/handlers.py", line 1542, in process_command
method(*args, **kwargs)
File "/usr/local/cosftp/pyftpdlib/handlers.py", line 2210, in ftp_MLST
data = b''.join(iterator)
File "/usr/local/cosftp/ftp_v5/cos_file_system.py", line 457, in format_mlsx
ft, size, last_modified, name = basename
ValueError: too many values to unpack
Sat, 17 Nov 2018 11:01:05 log.py[line:132] DEBUG [debug] call: close() (<CosFtpHandler(id=140467162044752,
FlashFXP-log:
https://hksd12-my.sharepoint.com/:t:...w1JDQ?e=7fZUQ4
Python-ftp-server-log:
https://hksd12-my.sharepoint.com/:t:...Ve72g?e=BawpEN