Correct code of Upai upload.