• 先通 楊
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I have a static resource that contains a style sheet. It's defined with <style type="text/css"> at the top.

When I upload the file for this resource, Salesforce creates it with a MIME type of text/plain. It doesn't pick up the MIME type from the file's contents. It doesn't let me specify the MIME type when I upload the file. There doesn't seem to be a way to change the MIME type of an existing static resource.

This is a problem because Firefox doesn't want to load a style sheet whose MIME type isn't text/css.

How can I define or change the MIME type of a static resource?

Thanks,

Jeri.

PS. If there was a better place to post this message, please let me know. Thanks!