Found 7 packages
A small library for creating multipart/form-data content from flat objects.
ASP.NET reader/parser of the HTTP multipart/form-data content sent from Windows Runtime via MultipartFormDataContent class.
讓WebAPI也可以接受 Content-Type: multipart/form-data
Provides interfaces for types in System.Net.Http: HttpClient, HttpContent, HttpRequestMessage, HttpResponseMessage, HttpHeaders, DelegatingHandler, HttpClientHandler, HttpMessageHandler, HttpMessageInvoker, MessageProcessingHandler, MultipartContent, MultipartFormDataContent, HttpContentHeaders, HttpRequestHeaders, HttpResponseHeaders.
A lightweight ASP.NET Core middleware for generating realistic mock API responses using local LLMs (via Ollama). Supports REST, GraphQL, SSE streaming, SignalR real-time data, gRPC, and OpenAPI specs. NEW in v2.3: Complete content type support - form bodies (application/x-www-form-urlencoded), file uploads (multipart/form-data) with memory-safe streaming, and arbitrary path lengths. All with manual JSON construction for .NET 10 AOT compatibility. 405 tests, 100% pass rate. Perfect for prototyping, demos, and testing. Compatible with .NET 8.0 and later.
<h1 class="display-5 text-center text-primary">Customer Information Setup</h1> <hr /> <form id="customerForm" method="post" asp-action="Save" enctype="multipart/form-data"> <div class="d-flex justify-content-center mb-2"> <button type="submit" id="btnSave" class="btn btn-primary">Save</button> <button type="submit" id="btnEdit" class="btn btn-success" style="display:none">Update</button> <button type="button" id="btnDelete" class="btn btn-danger">Delete</button> <button type="reset" class="btn btn-warning">Clear</button> </div> <div class="container-fluid"> <div class="row"> <input type="hidden" id="customerId" name="customerId" /> <div class="row mb-2"> <label class="col-form-label col-2">Customer Id</label> <div class="col-4"> <input type="text" id="customerCode" class="form-control form-control-sm" value="@ViewBag.id" /> </div> </div> <div class="row mb-2"> <label class="col-form-label col-2">Customer Name</label> <div class="col-4"> <input type="text" id="name" name="name" class="form-control form-control-sm" /> </div> </div> <div class="row mb-2"> <label class="col-form-label col-2">Business Start</label> <div class="col-4"> <input type="date" id="businessStart" name="businessStart" class="form-control form-control-sm" /> </div> </div> <div class="row mb-2"> <label class="col-form-label col-2">Phone</label> <div class="col-4"> <input type="text" id="phone" name="phone" class="form-control form-control-sm" /> </div> </div> <div class="row mb-2"> <label class="col-form-label col-2">Email</label> <div class="col-4"> <input type="text" id="email" name="email" class="form-control form-control-sm" /> </div> </div> <div class="row mb-2"> <label class="col-form-label col-2">Credit Limit</label> <div class="col-4"> <input type="text" id="creditDetails" name="creditDetails" class="form-control form-control-sm" /> </div> </div> <div class="row mb-2"> <label class="col-form-label col-2">Address</label> <div class="col-4"> <input type="text" id="address" name="address" class="form-control form-control-sm" /> </div> </div> <div class="row mb-2"> <label class="col-form-label col-2">Customer Type</label> <div class="col-4"> <select id="customerType" name="customerType" class="form-select form-select-sm"> <option value="Dealer">Dealer</option> <option value="Retailer">Retailer</option> <option value="Corporate">Corporate</option> <option value="Export">Export</option> <option value="Online">Online</option> </select> </div> </div> <div class="row mb-2"> <label class="col-form-label col-2">Photo</label> <div class="col-4"> <input type="file" id="photoInput" name="photo" class="form-control form-control-sm" onchange="previewImage(event)" accept="image/*" /> </div> <div class="col-6"> <img id="photoPreview" class="img-thumbnail d-none" style="width:40px;height:38px;object-fit:cover;" /> </div> </div> </div>