fixed bug: wrong generation of the thumbnails for files by item update. NOTE: generation of thumbnails depends on extension of uploaded temp file.