Fixed file upload functional