Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One Excel returns application/zip while other is OK #56

Open
janseris opened this issue Jun 25, 2024 · 0 comments
Open

One Excel returns application/zip while other is OK #56

janseris opened this issue Jun 25, 2024 · 0 comments

Comments

@janseris
Copy link

janseris commented Jun 25, 2024

returns xlsx.xlsx
returns application zip.xlsx

Project which demonstrates this:
Test project.zip

Or code if you don't wanna open .zip file as .NET MAUI team does:

string folderPath = @"../../../testFiles";
string[] xlsxFiles = Directory.GetFiles(folderPath, "*.xlsx");
foreach (var file in xlsxFiles)
{
    string mime = MimeGuesser.GuessMimeType(file);
    Console.WriteLine($"{Path.GetFileName(file)}: {mime}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant