Sitecore Media Import from file system/Export to file system

We can do the bulk import and export using Serialization.But when you are serializing the tree output would be filename.item.We can’t see the actual media (image,doc or zip.)

If you want to resize or compress the image after uploading the images, then this post is for you.

How to do it ?

  1. Download and install the Sitecore Media Export Import from Sitecore Media Import-Export-V1.0.zip
  2. Select the media folder and click export

Export Media

 

3.  After exporting the media , then check the export folder path

export folder path

How to Import from file system to Sitecore ?

  1. Select the media folder and click the import button

Import Media

Import progress

Export folder path name can be changed from config file.

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:x="http://www.sitecore.net/xmlconfig/">
<sitecore>
<commands>
<command name="mediaexporter:export" type="Sitecore.Scientist.MediaExportImport.MediaExportCommand, Sitecore.Scientist.MediaExportImport" />
<command name="mediaexporter:import" type="Sitecore.Scientist.MediaExportImport.MediaImportCommand, Sitecore.Scientist.MediaExportImport" />
</commands>
<settings>

<!-- The name of the directory under the Sitecore installation 
Data folder where exported zips will be stored -->
<setting name="Sitecore.Scientist.MediaExportImport.ExportFolderName" value="MediaExports" />

</settings>
</sitecore>
</configuration>

Download the Source code from Github.

Note : Please avoid the duplicate item names within the same tree.

Thanks for visiting my blog.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s