Use of FTP.GetUploadStream()

+1 vote
asked Apr 6, 2010 by Martin House (570 points)
edited Aug 10, 2010


Can you tell me what the default reaction of the Ftp.GetUploadStream() method is when the specified already exists on the host ? i.e. Will it, Overwrite, Append or raise an exception ?

Many thanks,

Applies to: Rebex FTP/SSL

1 Answer

0 votes
answered Apr 6, 2010 by Martin Vobr (12,950 points)
edited Apr 6, 2010
Best answer


the Ftp.GetUploadStream behaviour is the same as Ftp.PutFile. If the remote file exists it's overwritten. If the file cannot be overwritten (e.g. if you don't have permissions to write to file or the file is locked out) the exception it thrown.