{"id":27599752,"url":"https://github.com/tx7do/kratos-upload-file-example","last_synced_at":"2026-02-12T14:34:06.349Z","repository":{"id":275735453,"uuid":"926329192","full_name":"tx7do/kratos-upload-file-example","owner":"tx7do","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-09T06:26:49.000Z","size":1608,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-21T12:41:41.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tx7do.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-03T03:40:07.000Z","updated_at":"2025-05-09T06:26:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"065e0f66-b553-40cb-99f5-057a87cf2664","html_url":"https://github.com/tx7do/kratos-upload-file-example","commit_stats":null,"previous_names":["tx7do/kratos-upload-file-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tx7do/kratos-upload-file-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fkratos-upload-file-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fkratos-upload-file-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fkratos-upload-file-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fkratos-upload-file-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tx7do","download_url":"https://codeload.github.com/tx7do/kratos-upload-file-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fkratos-upload-file-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29368695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-22T15:43:35.022Z","updated_at":"2026-02-12T14:34:06.344Z","avatar_url":"https://github.com/tx7do.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kratos 上传文件实例\n\n本实例演示了如何使用Kratos上传文件。上传的文件都落地于MinIO。\n\n演示了后端的两种上传方式：\n\n1. 通过Kratos的服务向MinIO申请预签名URL，然后通过预签名URL向MinIO上传文件。\n2. 直接向Kratos的服务上传文件，然后，微服务再将文件落地到MinIO。\n\n方式一是最优的解决方案，因为文件不会经过微服务，直接上传到MinIO，减轻了微服务的压力。并且，MinIO支持分布式部署，可以很好的扩展。\n\n方式二是最简单的解决方案，但是不推荐，因为文件会经过微服务，增加了微服务的压力。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftx7do%2Fkratos-upload-file-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftx7do%2Fkratos-upload-file-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftx7do%2Fkratos-upload-file-example/lists"}