File upload fix invalid message