Add a little code for test upload.