my code of uploading and downloading