Gavin_Paolucci-Kleinow-URMC.Rochester
-
11/13/2012 2:01:57 PM
Determining if File Is In the Media Library Database
Right now I'm working on a bulk import utility to import files into the Medial Library. The files will already be physically located in the Media Library folders, but will not yet be imported, and there might be other files that are already imported. Because of this, I'm assuming that I need to check if the files are already imported before imported them.
Does anyone know if my assumption correct? If so, does anyone have any ideas of efficient, clean ways of checking if a file is already in the database/has already been imported? Right now I'm trying to work off of DataRow FileIsNotInDatabase(string fileName) in \CMSModules\MediaLibrary\Controls\MediaLibrary\MediaLibrary.ascx.cs, but it's rather messy. I'm hoping that there's a better way.
Thanks, -Gavin
|