File upload fix