Upload font files without using the attachment table?

Darrian
Tera Contributor

    I am trying to get access to newer versions of the Font Awesome Icon fonts from within my instance. I already have this working by using the attachment table and referencing the font files from the attachment table in the stylesheet for my service portal. However, I would like to avoid adding the ttf and woff2 file types to my list of approved file types for the attachment table. 

    I cannot reference the font files from other external internet sources unfortunately, so I need to have the files locally stored on my instance. Is there a way to do this. It is my understanding that ServiceNow used to allow files to uploaded previously, but that feature was deprecated. Is the only way to upload files to an instance through the attachment table?

1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

Hi, if you do not want to temporarily remove your production exclusion to allow you to upload a font attachment,
then 1 option would be to create a font record and upload the font attachment in a sub-prod instance or PDI.
Then export the sys_pdf_generation_font_family record to xml and import the xml file into your production instance.
This should allow you (a system administrator) to bypass the attachment extension check as you are not actually uploading an attachment. The font family record xml should include the attachment within it, if not you can always use xml to load a sys_attachment record and its' related sys_attachment_doc records.

View solution in original post

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, if you do not want to temporarily remove your production exclusion to allow you to upload a font attachment,
then 1 option would be to create a font record and upload the font attachment in a sub-prod instance or PDI.
Then export the sys_pdf_generation_font_family record to xml and import the xml file into your production instance.
This should allow you (a system administrator) to bypass the attachment extension check as you are not actually uploading an attachment. The font family record xml should include the attachment within it, if not you can always use xml to load a sys_attachment record and its' related sys_attachment_doc records.

Thanks Tony! I assumed that the xml import would be blocked by that attachment extension property as well.