{"id":37164426,"url":"https://github.com/flexd/multipartstreamer","last_synced_at":"2026-01-14T19:31:52.264Z","repository":{"id":137960952,"uuid":"44348260","full_name":"flexd/multipartstreamer","owner":"flexd","description":null,"archived":false,"fork":true,"pushed_at":"2015-10-15T22:06:40.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T13:28:20.420Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"technoweenie/multipartstreamer","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexd.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}},"created_at":"2015-10-15T22:06:19.000Z","updated_at":"2015-10-15T22:06:20.000Z","dependencies_parsed_at":"2023-03-13T12:56:09.583Z","dependency_job_id":null,"html_url":"https://github.com/flexd/multipartstreamer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/flexd/multipartstreamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexd%2Fmultipartstreamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexd%2Fmultipartstreamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexd%2Fmultipartstreamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexd%2Fmultipartstreamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexd","download_url":"https://codeload.github.com/flexd/multipartstreamer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexd%2Fmultipartstreamer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2026-01-14T19:31:51.688Z","updated_at":"2026-01-14T19:31:52.256Z","avatar_url":"https://github.com/flexd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multipartstreamer\n\nPackage multipartstreamer helps you encode large files in MIME multipart format\nwithout reading the entire content into memory.  It uses io.MultiReader to\ncombine an inner multipart.Reader with a file handle.\n\n```go\npackage main\n\nimport (\n  \"github.com/technoweenie/multipartstreamer.go\"\n  \"net/http\"\n)\n\nfunc main() {\n  ms := multipartstreamer.New()\n\n  ms.WriteFields(map[string]string{\n    \"key\":\t\t\t\"some-key\",\n    \"AWSAccessKeyId\":\t\"ABCDEF\",\n    \"acl\":\t\t\t\"some-acl\",\n  })\n\n  // Add any io.Reader to the multipart.Reader.\n  ms.WriteReader(\"file\", \"filename\", some_ioReader, size)\n\n  // Shortcut for adding local file.\n  ms.WriteFile(\"file\", \"path/to/file\")\n\n  req, _ := http.NewRequest(\"POST\", \"someurl\", nil)\n  ms.SetupRequest(req)\n\n  res, _ := http.DefaultClient.Do(req)\n}\n```\n\nOne limitation: You can only write a single file.\n\n## TODO\n\n* Multiple files?\n\n## Credits\n\nHeavily inspired by James\n\nhttps://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/Zjg5l4nKcQ0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexd%2Fmultipartstreamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexd%2Fmultipartstreamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexd%2Fmultipartstreamer/lists"}