Skip to main content
Fixed grammar and improved formatting.
Source Link
Sumit Helaiya
  • 3.2k
  • 2
  • 12
  • 23

I'm wanting to clean-up the media library, I have a script that outputs unused media library IDs. I then want to grab the media item associated with these IDs and download them to a temporary folder (ie SitecoreTempFolderi.e. SitecoreTempFolder). I've tried Send-FileSend-File and Out-DownloadOut-Download but these both store items to the local download folder which is not viable.

I'm just after the actual media item/file and not the sitecoreSitecore item. I have also attempted to use the move-item/copy-item but these cannot transfer between sitecoreSitecore and local/temp folders.

Many thanks in advance for any advice!

I'm wanting to clean-up the media library, I have a script that outputs unused media library IDs. I then want to grab the media item associated with these IDs and download them to a temporary folder (ie SitecoreTempFolder). I've tried Send-File and Out-Download but these both store items to the local download folder which is not viable.

I'm just after the actual media item/file and not the sitecore item. I have also attempted to use the move-item/copy-item but these cannot transfer between sitecore and local/temp folders.

Many thanks in advance for any advice!

I'm wanting to clean-up the media library, I have a script that outputs unused media library IDs. I then want to grab the media item associated with these IDs and download them to a temporary folder (i.e. SitecoreTempFolder). I've tried Send-File and Out-Download but these both store items to the local download folder which is not viable.

I'm just after the actual media item/file and not the Sitecore item. I have also attempted to use the move-item/copy-item but these cannot transfer between Sitecore and local/temp folders.

Many thanks in advance for any advice!

Source Link
Rick
  • 13
  • 2

How to download media item to SitecoreTempFolder?

I'm wanting to clean-up the media library, I have a script that outputs unused media library IDs. I then want to grab the media item associated with these IDs and download them to a temporary folder (ie SitecoreTempFolder). I've tried Send-File and Out-Download but these both store items to the local download folder which is not viable.

I'm just after the actual media item/file and not the sitecore item. I have also attempted to use the move-item/copy-item but these cannot transfer between sitecore and local/temp folders.

Many thanks in advance for any advice!