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);
}
}
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);
}
}