Common code for all MediaFileManager modules