Fixed upload by file type