Upload BIG files via HTTP
Thank you @Stoune, it was last thing that helped to receive finally working solution. One more, it is need to organize stream file reading and writing to the webrequest buffer. And it possibly to do with that piece of code: $requestStream = $webRequest.GetRequestStream() $fileStream = [System.IO.File]::OpenRead($file) $chunk = New-Object byte[] $bufSize while( $bytesRead = $fileStream.Read($chunk,0,$bufsize) … Read more