Skip to content

Instantly share code, notes, and snippets.

View Narasimhamurthygn's full-sized avatar

Narasimhamurthy GN Narasimhamurthygn

View GitHub Profile
@Narasimhamurthygn
Narasimhamurthygn / fileupload.cs
Created October 9, 2019 14:20 — forked from cmatskas/fileupload.cs
File Upload C#
[HttpPost]
public async Task<JsonResult> UploadHomeReport(string id)
{
try
{
foreach (string file in Request.Files)
{
var fileContent = Request.Files[file];
if (fileContent != null && fileContent.ContentLength > 0)
{