Fixed failing when upload file doesn't exist