{"id":19976583,"url":"https://github.com/erossini/httpclientmultipart","last_synced_at":"2025-05-04T03:30:30.884Z","repository":{"id":150093090,"uuid":"446368775","full_name":"erossini/HttpClientMultipart","owner":"erossini","description":"Upload/Download Files Using HttpClient in C#","archived":false,"fork":false,"pushed_at":"2022-01-10T20:03:48.000Z","size":39,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T02:42:50.061Z","etag":null,"topics":["dotnet","dotnet-core","dotnetcore","file-download","file-upload","http","httpclient","https","netcore"],"latest_commit_sha":null,"homepage":"","language":"C#","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/erossini.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}},"created_at":"2022-01-10T10:02:33.000Z","updated_at":"2024-06-14T10:22:57.000Z","dependencies_parsed_at":"2023-06-05T08:00:26.120Z","dependency_job_id":null,"html_url":"https://github.com/erossini/HttpClientMultipart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erossini%2FHttpClientMultipart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erossini%2FHttpClientMultipart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erossini%2FHttpClientMultipart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erossini%2FHttpClientMultipart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erossini","download_url":"https://codeload.github.com/erossini/HttpClientMultipart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252283518,"owners_count":21723485,"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","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":["dotnet","dotnet-core","dotnetcore","file-download","file-upload","http","httpclient","https","netcore"],"created_at":"2024-11-13T03:24:30.721Z","updated_at":"2025-05-04T03:30:30.863Z","avatar_url":"https://github.com/erossini.png","language":"C#","readme":"# Upload/Download Files Using HttpClient in C#\n\nIn this new post, I show you how to upload/download files using HttpClient in [C#](https://www.puresourcecode.com/tag/csharp/) and [.NET Core](https://www.puresourcecode.com/category/dotnet/net-core/). Creating a new version of the [Markdown Editor component](https://www.puresourcecode.com/dotnet/blazor/markdown-editor-with-blazor/) for [Blazor](https://www.puresourcecode.com/category/dotnet/blazor/), I face some issues with the file upload. So, I was working to find a solution and now I can tell you how to do it.\n\nFirst, I will take a look at how to send multipart MIME data to a [Web API](https://www.puresourcecode.com/category/dotnet/webapi/) using HttpClient. We will create two applications to demonstrate the data transfer between the _client side_ and the _server side_. The server-side app is an ASP.NET Core web project, which includes a `Web API controller` for uploading and downloading files. The client-side app is a `Console project`, which contains a [Typed HttpClient](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/http-requests?view=aspnetcore-3.1#typed-clients) to send HTTP requests for file uploading and/or downloading.\n\nThe full explanetion of the code is in this [post](https://www.puresourcecode.com/dotnet/net6/upload-download-files-using-httpclient/) on [PureSourceCode](https://www.puresourcecode.com/).\n\n![httpclient](https://user-images.githubusercontent.com/9497415/148814861-1928a09a-998e-4b52-975b-d4ba6b3a3774.gif)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferossini%2Fhttpclientmultipart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferossini%2Fhttpclientmultipart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferossini%2Fhttpclientmultipart/lists"}