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

martin

Re: File goes with Filepart even after turning off the endurance

Your code never uses the transferOptions.
It should be:
transferResult = session.PutFiles(file, destfolder, False, transferOptions)

or
transferResult = session.PutFiles(file, destfolder, options:=transferOptions)

See https://winscp.net/eng/docs/library#csharp
Beatrice

File goes with Filepart even after turning off the endurance

Hi,

Our file is still transmitted with the Filepart even after the endurance is didabled.
Also I am adding this in my program.
Dim transferOptions = New TransferOptions
transferOptions.ResumeSupport.State = TransferResumeSupportState.Off
 
transferResult = session.PutFiles(file, destfolder)

Is there something else I need to add, so that filepart does not goes with the file?

Please help!!