skip to Main Content

azure function to upload multiple files into blob storage

public static class FileUpload { [FunctionName("FileUpload")] public static async Task<IActionResult> Run( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequest req, ILogger log) { string Connection = Environment.GetEnvironmentVariable("AzureWebJobsStorage"); string containerName = Environment.GetEnvironmentVariable("ContainerName"); Stream myBlob = new MemoryStream(); var file = req.Form.Files["File"]; myBlob =…

VIEW QUESTION

Why doens't the form use my method from my Controller? – Asp.net

This form instead using the "Verify function in my controllers goes to the subpage /Account/Verify Form: @using (Html.BeginForm("Verify", "Account", FormMethod.Post)) { <span>Enter Your Email:</span>@Html.TextBoxFor(m=>m.Name)<br /> <span>Enter Your Password:</span>@Html.TextBoxFor(m=>m.Password)<br /> <input id="Submit" type="submit" value="submit" /> } Method: [HttpPost] public ActionResult Verify(Account…

VIEW QUESTION

How can I pass JS arrays to C# webforms? – Asp.net

<head runat="server"> <title></title> <script> const array1 = ["Saab", "Volvo", "BMW"]; </script> </head> <body> <form id="form1" runat="server"> <div> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click1" /> </div> </form> </body> public partial class JSPassWebForm : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {…

VIEW QUESTION

How to Deserialize Json Array

I have a Json Response to deserialize, after doing the deserialize I get error. This is the Json array I want to deserialize: { "status": 200, "success": true, "message": "Success", "data": [ { "transaction_reference": "REF202301031128311645_1", "virtual_account_number": "1234567890", "principal_amount": "200.00", "settled_amount":…

VIEW QUESTION
Back To Top
Search