I think you can use EPPlus.Core version.
For usual C#
//provide file path
FileInfo existingFile = new FileInfo(@"D:\sample_XLSX.xlsx");
//use EPPlus
using (ExcelPackage package = new ExcelPackage(existingFile))
{
//get the first...
You need to
You need to Create Model First, create a new class in "Models" folder or somehwere in your project.
name it as "FileDetails.cs"
public class FileDetails{
public string Id {get;set;}
public string URL {get;set;}
}
Something like this and save it in database using EF core...
If you want to upload file to google drive without asking user for credentials you need to use service account.
https://qawithexperts.com/article/asp-net/upload-file-to-google-drive-using-service-account-in-c-mvc-w/241
Looks like you are not doing that.
To make console app as Windows...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.