{"id":25421559,"url":"https://github.com/reecerussell/aws-lambda-multipart-parser","last_synced_at":"2025-10-13T08:38:19.041Z","repository":{"id":97886312,"uuid":"277841074","full_name":"reecerussell/aws-lambda-multipart-parser","owner":"reecerussell","description":"A simple, lightweight tool to parse multipart/form-data from the body of incoming API Gateway proxy requests.","archived":false,"fork":false,"pushed_at":"2024-04-13T19:06:01.000Z","size":52,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T19:10:27.883Z","etag":null,"topics":["aws","aws-lambda","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reecerussell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-07-07T14:36:33.000Z","updated_at":"2024-06-13T11:56:55.000Z","dependencies_parsed_at":"2025-05-13T19:02:21.097Z","dependency_job_id":null,"html_url":"https://github.com/reecerussell/aws-lambda-multipart-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/reecerussell/aws-lambda-multipart-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reecerussell%2Faws-lambda-multipart-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reecerussell%2Faws-lambda-multipart-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reecerussell%2Faws-lambda-multipart-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reecerussell%2Faws-lambda-multipart-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reecerussell","download_url":"https://codeload.github.com/reecerussell/aws-lambda-multipart-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reecerussell%2Faws-lambda-multipart-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014319,"owners_count":26085492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aws","aws-lambda","go","golang"],"created_at":"2025-02-16T20:48:57.792Z","updated_at":"2025-10-13T08:38:19.024Z","avatar_url":"https://github.com/reecerussell.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Lambda Multipart Parser\n\nA simple, lightweight tool to parse multipart/form-data from the body of incoming API Gateway proxy requests.\n\n## Installation\n\nSimply run this in your CLI:\n\n    go get -u github.com/reecerussell/aws-lambda-multipart-parser\n\n## Example\n\nHere is a example of a Lambda function handler, which expected multipart/form-data.\n\n```go\nimport (\n\t\"context\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/aws/aws-lambda-go/events\"\n\t\"github.com/reecerussell/aws-lambda-multipart-parser/parser\"\n)\n\nfunc handler(ctx context.Context, req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {\n\t// Parse the request.\n\tdata, err := parser.Parse(req)\n\tif err != nil {\n\t\treturn events.APIGatewayProxyResponse{}, err\n\t}\n\n\t// Attempt to read the 'text' form field.\n\ttxt, ok := data.Get(\"text\")\n\tif !ok {\n\t\treturn events.APIGatewayProxyResponse{\n\t\t\tStatusCode: http.StatusBadRequest,\n\t\t\tBody: \"missing 'text' field\",\n\t\t}, nil\n\t}\n\n\tlog.Printf(\"Text: %s\\n\", txt)\n\n\t// Attempt to read the file in form field 'file'.\n\tfile, ok := data.File(\"file\")\n\tif !ok {\n\t\treturn events.APIGatewayProxyResponse{\n\t\t\tStatusCode: http.StatusBadRequest,\n\t\t\tBody: \"missing file\",\n\t\t}, nil\n\t}\n\n\tlog.Printf(\"File Type: %s\\n\", file.Type)\n\tlog.Printf(\"Filename: %s\\n\", file.Filename)\n\tlog.Printf(\"Content Type: %s\\n\", file.ContentType)\n\tlog.Printf(\"Content:\\n%s\", string(file.Content))\n\n\treturn events.APIGatewayProxyResponse{\n\t\tStatusCode: http.StatusOK,\n\t}, nil\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freecerussell%2Faws-lambda-multipart-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freecerussell%2Faws-lambda-multipart-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freecerussell%2Faws-lambda-multipart-parser/lists"}