File upload fix (#12128)