Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Sftp uploads empty file

$
0
0

Hello, im working with the library downloaded as a nuget package, building for framework 3.5

Most of what i have used works ok, but this simple code:

using (var file = File.OpenRead(localFile))
{
     Client.UploadFile(file, remoteFile);
}

Lets the file in the server with 0 bytes and no exception.

localFile is a pdf of 5Mb and remote file is tha same name and in my home directory of a RHEL x86_64 GNU/Linux

What can i check to wee what is the problem ?


Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>