File upload fails after it hits 100 percent - 413 error