Import media libraries

Leo Leme asked on April 16, 2021 21:20

Hello, I'm testing now the new Kentico 13 Core MVC.

We already have lots of media library on our website running version 10.

How can we bring these media libraries to the new Kentico 13 ? Not just the entry in the database, but the physical files too.

Thank you very much

Leonardo Leme

Correct Answer

Juraj Ondrus answered on April 21, 2021 05:56

I believe Nikhila meant the export/import feature in the admin UI as described in the documentation.
When using import toolkit, you can select your current DB as the data source and the new DB as the target and then migrate the contents of the Media_* DB tables. Keep in mind that media files are physical files, not stored in the DB, so you will need to manually copy the files between the file systems and keep the same physical folder structure.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Nikhila Reddy Pocha answered on April 16, 2021 21:59

Hi Leo,

You can migrate that by importing media objects from version 10 to version 13 using export and import object in site. After successfully import of your media objects into Kentico 13 admin, you able to see the physical media folder under cms folder directory and from there you just have to copy paste the complete media folder into your mvc project folder directory.

Thanks & Regards Nikhila

1 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 19, 2021 07:15

Just a note - when exporting/importing do not forget to check the option "export/import physical files".

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on April 19, 2021 10:04

Hi guys,

There is one more thing to keep in mind when migrating a lot of media library files, and it's request limits. If you have lots of media files, they will be packed in a large zip archive. This process takes some time and you may start seeing request timeout errors. Make sure you've enlarged request timeouts and response size variables in your web.config correspondingly.

0 votesVote for this answer Mark as a Correct answer

Bill Mulligan answered on April 20, 2021 17:58 (last edited on April 20, 2021 18:02)

Can you associate a product in K13 commerce with an image in the media library? And thus can you associate one product image file with two different products?

0 votesVote for this answer Mark as a Correct answer

Leo Leme answered on April 20, 2021 18:55

Hello Nikhila!

I understand the concept, but you mentioned 'using export and import object in site'.

How can I get to this application ? Is it from the Administration site or from the Kentico Xperience Import Toolkit 13 ?

If it's from Kentico Import Toolkit 13, when I get to the 'Please, select the datasource', what should I select to bring the Media Library ?

Thank you.

0 votesVote for this answer Mark as a Correct answer

Leo Leme answered on May 11, 2021 18:15

Hello,

I was able to export/import the files and after that, I copied the files to the target folder. It looked fine at first but then I noticed that there is an orange icon besides each file with the tooltip "Import". Just when I click this icon, the file becomes available (and I guess it will be in the database).

My question is: Is there a way to do this automatically for every file because we have lots of files to be imported ?

Also, what too is this Kentico Experience Import Toolkit 13 ? Would this tool do a better job than the import/export website tool from the adm Kentico website ?

Thank you very much guys!

Leonardo

0 votesVote for this answer Mark as a Correct answer

Leo Leme answered on May 11, 2021 21:27

Hello, Juraj !

When importing using the Import Toolkit I see that there are two main tables: Media_Files and Media_Library. Do you know the difference between them ?

Thank you !

Leonardo

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on May 12, 2021 05:10

Hi Leo,
Yes, one table holds the records for the media files and the second one holds the information about given media library. Files are split across the media library objects.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.