Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Media Library Import View modes: 
User avatar
Member
Member
whitney_jason - 9/22/2009 4:43:22 PM
   
Media Library Import
Can anyone tell me the fastest method of importing images into a media library?

I've got product images from my old ecommerce system that I need to get into the media library. There are 9,000+ images so doing them a page at a time is not really an option. I've looked around the forums and in the dev manual for a sample of an import using the API's but have had no luck. I'm a newb when it comes to programming; I can figure it out if I have a decent example.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/24/2009 8:23:44 AM
   
RE:Media Library Import
Hello,

I would recommend you to use external upload. You may copy the files by FTP and then use batch import. Please see here: http://devnet.kentico.com/docs/devguide/uploading_files_into_media_libraries.htm for more details.

Best regards,
Helena Grulichova

User avatar
Member
Member
whitney_jason - 9/24/2009 8:34:49 AM
   
RE:Media Library Import
I did use the external upload. The batch import in the dev guide shows using the check boxes and the drop down, but since the list only shows 25 records at a time, I would have to run it over 300 times to import my 9,000+ images.

I realize I probably need to do it in smaller batches but I've got to find a way to do more than 25 at a time.

Any more suggestions?

Thanks,

Jason

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/24/2009 9:23:16 AM
   
RE:Media Library Import
Hello,

You could develop a custom functionality which could import files programmatically. You can see our code which imports file to media gallery in this file:
<web site folder>\CMSModules\MediaLibrary\Controls\MediaLibrary\FileList\FileList.ascx.cs
(HandleMultipleMediaFiles() method)

API Reference is here: http://devnet.kentico.com/downloads/kenticocms_api.zip

Best regards,
Helena Grulichova