Hi ,
I have been using the below command to upload a files from local to sharepoint libraries.
$filep = $FilePath+"\"+$FileName$File= Get-ChildItem $filep
$folder = $list.ParentWeb.GetFolder($pa);
$folder.Files.Add("pages/"+$Node.rpath+"/"+$fileN ,$File.OpenRead(),$true)
This fails while uploading a zip file . can you please suggest any ideas for this ...