Johan de Klerk
Johan de Klerk

Reputation: 2535

FilePathResult Download Progress MVC

I use this method to download a file

public FilePathResult downloadFile(string fileName)
{
    //Download the spreadsheet
    string path = "C:\\Users\\Johandk\\Documents\\Visual Studio 2010\\Projects\\FormValue\\" + fileName + ".xlsx";
    return File(path, "application/vnd.ms-excel", fileName + ".xlsx");
}

Is there any way I can check the download progress or even get notified when the download completes?

Thanks

Upvotes: 1

Views: 2729

Answers (1)

AMember
AMember

Reputation: 3057

Detecting the File Download Dialog In the Browser

taken from this answer

Upvotes: 1

Related Questions