Media Library Batch Upload

Terrel Schimpf asked on February 19, 2016 17:54

We have a need to be able to update several of the images in the media library and would like option to do in batch mode. The plan would be to create Content Editor entries and reference a image by folder\name. The hope would be we would be able to just copy in a new File using the same name and overwrite the image in the library. We would just do normal file copy to the media library share folder. I tried by just making a update to one of the servers. It did not sync the change to the 2nd server. I know I can then just batch upload to both servers the only question is since I have the files setup for Database and Folder will the database ever update? Does it matter since it should be pulling from the file system?

Should I use a different option? I tried the Web part for Media Library but it renames the files when it loads them and does not overwrite the existing file?

Recent Answers

Roman Hutnyk answered on February 19, 2016 18:16

Terrel, I believe what you've described should work. Yes, you'll need to copy files to both servers. As far as I know, Kentico does not store media library files in a database, just some metadata, so after you copy files in the file system, some fields in the database will be invalid (e.g. File Size) - not sure if this is a huge issue, but Kentico should notice this and put exclamation mark next to the file you've copied. You should have an option to import this file from the Media Lib UI (I believe it will just update metadata in database). You should be able to do butch import, if I'm not mistaken.

1 votesVote for this answer Mark as a Correct answer

vasu yerramsetti answered on February 21, 2016 22:29

Terrel, Please use Media Library API for bulk import into media library and its support sync from one server to another.

0 votesVote for this answer Mark as a Correct answer

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