I have an Azure Blob Storage where I want to upload some files.
Index.cshtml\[code\]@using (Html.BeginForm("File_post", "UMyController", FormMethod.Post, new { enctype = "multipart/form-data" })){ <div class="editor-label"> <p> <input type="file" name="file" /> </p> <input type="submit" value="http://stackoverflow.com/questions/12616885/Upload" /> </div>}\[/code\]MyController.cs
\[code\]public ActionResult File_post(HttpPostedFileBase file){ CloudBlobContainer blobContainer = Initialize(); // This Initialize my blobContainer CloudBlockBlob blob; blob = blobContainer.GetBlockBlobReference("myfile"); blob.UploadFromStream(file.InputStream);}\[/code\]I tested with a 3.5Mo file, it works even with a 20Mo file. Now I try with a 33Mo and firefox gives me the basic error :The connection was reset...Any idea ? Thanks a lot !
Index.cshtml\[code\]@using (Html.BeginForm("File_post", "UMyController", FormMethod.Post, new { enctype = "multipart/form-data" })){ <div class="editor-label"> <p> <input type="file" name="file" /> </p> <input type="submit" value="http://stackoverflow.com/questions/12616885/Upload" /> </div>}\[/code\]MyController.cs
\[code\]public ActionResult File_post(HttpPostedFileBase file){ CloudBlobContainer blobContainer = Initialize(); // This Initialize my blobContainer CloudBlockBlob blob; blob = blobContainer.GetBlockBlobReference("myfile"); blob.UploadFromStream(file.InputStream);}\[/code\]I tested with a 3.5Mo file, it works even with a 20Mo file. Now I try with a 33Mo and firefox gives me the basic error :The connection was reset...Any idea ? Thanks a lot !