草庐IT

transferobserver

全部标签

android - 使用 transferobserver android 设置 aws 对象的权限

privatevoidbeginUpload(StringfilePath){if(filePath==null){Toast.makeText(this,"Couldnotfindthefilepathoftheselectedfile",Toast.LENGTH_LONG).show();return;}Filefile=newFile(filePath);TransferObserverobserver=transferUtility.upload(Constants.BUCKET_NAME,file.getName(),file);observers.add(observer)