Web Connection
ContentTypeFromExtension
Gravatar is a globally recognized avatar based on your email address. ContentTypeFromExtension
  Kathy
  All
  Feb 18, 2019 @ 10:38am

Hello Rick,
I was wondering if there's any updated version of wwUtils::ContentTypeFromExtension(lcExtension).
For .xslx type (for instance) I'm getting "application/octet-stream" instead of something like "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" but it's not the only file type I need to transmit.
I'd appreciate any suggestion.
Thanks,
Kathy

Gravatar is a globally recognized avatar based on your email address. re: ContentTypeFromExtension
  Rick Strahl
  Kathy
  Feb 18, 2019 @ 01:51pm

You can just add it to the function. I added it here, but the registry doesn't show a content type for it which is why it's failing and returning the generic application/octet-stream.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: ContentTypeFromExtension
  Kathy
  Rick Strahl
  Feb 19, 2019 @ 06:39am

I got it.
Thank you so much.
Kathy

© 1996-2024