Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Cannot transfer a ZIP file to Server

tilo1583 wrote:

Is it something related to the size of the file?

I do not know, can you upload smaller files? But large enough to trigged the resume support threshold (by default 100 Kb).
tilo1583

Cannot transfer a ZIP file to Server

I am using WinSCP version 4.2.7 on a Windows platform. The SFTP server is freeFTPd.
I need to transfer large files around 2GB in size.
I am using scripting/automation.

Here is my .bat file

option batch on
option confirm off
open sftp://xxxxx:xxxxxxx@xxx.xx.xxx.xx:22 -hostkey="xxxxx .."
put %1%

The file that I transfer is C:\FTP_TRANSFER\2.zip

Here is a portion of the logs:

Using username "xxxxxxxxxx".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
C:\FTP_TRANSFER\2.zip | 2455527 KiB | 189.2 KiB/s | binary | 100%
Transfer was succesfully finished, but temporary transfer file '2.zip.filepart'
could not be renamed to target file name '2.zip'. If the problem persists, you m
ay try to turn off transfer resume support.
Bad message (badly formatted packet or protocol incompatibility).
Error code: 5
Error message from server: Bad message
Request code: 18
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort

Is it something related to the size of the file?