Topic "FTP uploads are incomplete"

Author Message
GuestXI

Guest


5.0.7 (b2268) beta doesn't allow me to upload any files larger than approximately 10MB to my NAS running a very simple FTP server. The transfer will be aborted and a file left on the server that can be from ~100kb to any larger random size. The file never gets uploaded intact.

The only workaround I have found is to set a speed limit to 512kb/s.

Testing with 4.3.8 speeds of up 5Mbit/s are reached while finishing the transfer.


Logging doesn't show any error messages and the logs are identical from 4.3.8 and the beta. Both say the upload was successful. Note the different file sizes.


4.3.8:
Quote:
Copying 1 files/directories to remote directory "/stor1"
PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
TM: M; ClAr: No; CPS: 0; ExclM(No):
AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
File: "C:\backup.7z"
Copying "C:\backup.7z" to remote directory started.
Binary transfer mode selected.
Starting upload of C:\backup.7z
TYPE I
200 Type set to I.
PASV
227 Entering Passive Mode (192,168,1,0,80,108).
STOR backup.7z
150 Opening BINARY mode data connection for backup.7z.
Session upkeep
226 Closing data connection.
Upload successful
Got reply 1 to the command 4
Retrieving directory listing...
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,168,1,0,80,109).
LIST -a
150 File status okay; about to open data connection.
226 Closing data connection.
drw-rw-rw- 1 user group 0 Jul 3 13:34 .
drw-rw-rw- 1 user group 0 Jul 3 13:34 ..
-rw-rw-rw- 1 user group 50195490 Jul 5 12:11 backup.7z
Directory listing successful
Got reply 1 to the command 2
Session upkeep



5.0.7 beta:
Quote:
Copying 1 files/directories to remote directory "/stor1"
PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
TM: M; ClAr: No; CPS: 0; InclM:
AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
File: "C:\backup.7z"
Copying "C:\backup.7z" to remote directory started.
Binary transfer mode selected.
Starting upload of C:\backup.7z
TYPE I
200 Type set to I.
PASV
227 Entering Passive Mode (192,168,1,0,80,112).
STOR backup.7z
150 Opening BINARY mode data connection for backup.7z.
Session upkeep
226 Closing data connection.
Session upkeep
Upload successful
Got reply 1 to the command 4
Retrieving directory listing...
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,168,1,0,80,113).
LIST -a
150 File status okay; about to open data connection.
226 Closing data connection.
drw-rw-rw- 1 user group 0 Jul 3 13:34 .
drw-rw-rw- 1 user group 0 Jul 3 13:34 ..
-rw-rw-rw- 1 user group 25336160 Jul 5 12:14 backup.7z
Directory listing successful
Got reply 1 to the command 2
Session upkeep
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Try disabling Optimize connection buffer size:
http://winscp.net/eng/docs/ui_login_connection
_________________
Martin Prikryl
GuestXI

Guest


Excellent. Without the buffer, transfers are completing successfully.

Does "SendBuf" have to be set manually for every stored session or can it be disabled it in scripts?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
GuestXI wrote:
Does "SendBuf" have to be set manually for every stored session or can it be disabled it in scripts?

Well, both it true.

For script, see:
http://winscp.net/eng/docs/faq_script_ini
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License