Post a reply

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

jtabc123

Re: Upload happening multiple times?

How do I specify this via command line?
martin

Re: Upload happening multiple times?

Do did "try try turning off 'Optimize connection buffer size'", as suggested?
jtabc123

Upload happening multiple times?

Sometimes when I'm uploading using SFTP the file gets uploaded multiple times and I don't understand why. This is the command I'm using. I need to figure out how to change it to prevent the file from being uploaded multiple times.
"C:\Program Files (x86)\WinSCP\WinSCP.com" /ini=nul /command "open sftp://username:"password"@sftp.contributor.adobestock.com -hostkey=""ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" "put -nopreservetime -nopermissions ""input.mov""" exit

Here is the output I got:
Searching for host...

Connecting to host...
Authenticating...
Using username "username".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Session started.
Active session: [1] username@sftp.contributor.adobestock.com
input.mov |      410182 KB | 1188.7 KB/s | binary | 100%
Host is not communicating for more than 15 seconds.
Still waiting...
Note: If the problem repeats, try turning off 'Optimize connection buffer size'.
Warning: Aborting this operation will close connection!
(A)bort (60 s): Abort
input.mov |      410182 KB |  153.0 KB/s | binary | 100%
Terminated by user.
(A)bort, (R)econnect (5 s): Reconnect
Searching for host...
Connecting to host...
Authenticating...
Using username "username".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Session started.
input.mov |      410182 KB |  425.4 KB/s | binary | 100%
Host is not communicating for more than 15 seconds.
Still waiting...
Note: If the problem repeats, try turning off 'Optimize connection buffer size'.
Warning: Aborting this operation will close connection!
(A)bort (60 s): Abort
input.mov |      410182 KB |   59.9 KB/s | binary | 100%
Terminated by user.
(A)bort, (R)econnect (5 s): Reconnect
Searching for host...
Connecting to host...
Authenticating...
Using username "username".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Session started.
input.mov |      410182 KB |  474.9 KB/s | binary | 100%
Sleeping, waiting for return value.

This resulted in my file being uploaded three times to the server, even though WinSCP makes it look as though it only uploaded it once since the first two times appeared to fail (even though they didn't). What is happening here? What do I need to change about my command to make sure the file does not get uploaded multiple times?

These are the instructions that the server gave me in case these help: