Refine uploading process.