My content authors uploaded a ton of media items in our UAT environment. I'm trying to package these and install in prod, but the installation isn't working. I'm created a regular Sitecore package with the Installation wizard, selected the root folder of all of the new media items (with subitems) and created the package. When I install in prod, all of the media items are created but have no attached image. I tried installing several times and overwriting all items but I can't get it to work.
2 Answers
I can't be sure from your incomplete screenshots, but from the bit of the "File Path" field showing in your Prod screenshot, I guess your media items are using File storage rather than Database storage. I don't believe Sitecore will manage copying your actual storage files from UAT to Prod for you; you will have to do that as a separate step. I guess that the missing storage files in Prod is why you don't see a rendering of the media item in the Media field.
-
Thank you - I wasn't familiar with the File Storage option. Commented Dec 11, 2019 at 18:14
According to me you are trying to create package of media item for which actual media is stored in file system so I will say follow below steps to create you package.
- Go to Package Designer.
- Then you can go to Items statically.
- Then select the media items and other related items of your requirement.
- Now for the images/media from file system you need to go Files statically.
- Then you will get you file root where ideally your media should be places.
- Then you can select all media from from the folder where it is.
And now you are good for installing this package for Production.
App_Data/Replicated/MediaFiles/...