dart_ftpclient
dart_ftpclient copied to clipboard
Can't run upload example
Describe the bug
When running the upload example I get an exception type 'OSError' is not a subtype of type 'int' and the file received on the server is 0 byte long.
Expected behavior A successful upload of the choosen file.
Platform: Dart Native
FTP Server Software
- ProFTPd
- vsftpd
Log Enable the debug Flag in the Constructor and paste the Log. Remember to remove sensitive information!
[14.03.2021 23:34:09.719] Connecting...
[14.03.2021 23:34:09.732] < 220 ProFTPD Server (ProFTPD Default Installation) [127.0.0.1]
[14.03.2021 23:34:09.732] > USER luke
[14.03.2021 23:34:09.838] < 331 Password required for luke
[14.03.2021 23:34:09.838] > PASS *************
[14.03.2021 23:34:09.939] < 230 User luke connected
[14.03.2021 23:34:09.939] Connected!
[14.03.2021 23:34:09.949] Upload File: test.zip
[14.03.2021 23:34:09.950] > TYPE I
[14.03.2021 23:34:10.051] < 200 Type set to I
[14.03.2021 23:34:10.051] > PASV
[14.03.2021 23:34:10.151] < 227 Entering Passive Mode (127,0,0,1,138,203).
[14.03.2021 23:34:10.173] > STOR test.zip
[14.03.2021 23:34:10.176] Opening DataSocket to Port 35531
[14.03.2021 23:34:10.182] Disconnecting...
[14.03.2021 23:34:10.182] > QUIT
I resolved using version 0.6.0 instead of the 0.8.0 which I was previously using.