I have an MVC 4 application that generates Excel spreadsheets from a template stored on my shared hosting FTP, but I would like the generated files to be stored in the user's Dropbox folder, not the server. How can I accomplish this using C#?
My files are currently saved as follows:
ExcelPackage p = new ExcelPackage(tempFile);
string newpath = Path.Combine(Server.MapPath("~/Content"), "Invoice.xlsx");
FileInfo newFile = new FileInfo(newpath);
p.SaveAs(newFile);
tempFile
is the template, which isn't relevant here. This code stores it on the server which I don't want.