Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Created Unassigned: SftpPathNotFoundException for StatusCodes.NoSuchFile when uploading large files [2494]

$
0
0
I am getting StatusCodes.NoSuchFile when uploading above certain size file but works fine for small files, I tried playing with different Buffer sizes but no luck.

Can anyone please let me know what could be the problem(s)?

private void ThrowSftpException(SftpStatusResponse response)
{
if (response.StatusCode == StatusCodes.PermissionDenied)
{
throw new SftpPermissionDeniedException(response.ErrorMessage);
}
else if (response.StatusCode == StatusCodes.NoSuchFile)
{
throw new SftpPathNotFoundException(response.ErrorMessage);
}
else
{
throw new SshException(response.ErrorMessage);
}
}

Viewing all articles
Browse latest Browse all 1026

Trending Articles



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