add file type to PHP back