init index and upload file to oss