support for uploading files of various types

matching php update
check for null thumbnails for asset deletetion