fix ThumbnailUploadDialog file extension problem