I'm trying to upload folder contents to their respective folders in our SharePoint site. Is there a PowerShell script that will work with multiple folders and files? The only ones I've seen do it file by file, and I have to name the exact file I want to upload, instead of just taking everything in the folders, and putting them on the site. Here's my site hierarchy:
(list) Archives
(document folder) 01 January
(document folder) 02 February
(document folder) 03 March
(document folder) 04 April
Here's my folder structure on local machine:
c:\Archives\01 January\fa.pdf
c:\Archives\02 February\fa.pdf
c:\Archives\03 March\fa.pdf
c:\Archives\04 April\fa.pdf
I've attempted to run the Get-SPScrips.Copy-FiletoSP, but get an error stating you cannot call a method on a null-valued expression @ $web.Dispose(). If anyone could help, this would be great.