Filepath property not accessible for static resources (9.5.10)

  • 1
  • Problem
  • Updated 6 months ago
  • Solved
Just updated to 9.5.10 and we now cannot access the filepath property for javascript static resources.

I can hack the XML and add the filepath property, and the resource works as expected.

If I remove the content_type property in the XML, the filepath property appears in the builder and also works as expected.

The content type of my resource is "application/x-zip-compressed"
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 1 year ago

  • 1
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Hi Matt. Are you seeing this change on an existing page of yours, or a new page? Or perhaps both? And, which version were you using before the update? 
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
We were on the most recent version of Banzai (8.15.something?)

This is on both existing and new pages.
(Edited)
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
One thing I'm noticing when building new pages is that the filepath field in the page builder only shows if the resource you select is a ZIP file. 

Another bit of information is that when I examine the XML for the new page and new static resource in my testing, I see content_type="application/zip." It could be that between Banzai and Brooklyn this naming convention changed. Can you try transplanting this value to see if the behavior changes?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Mark,

That worked. I was running some grunt script that was giving my zipped static resources the content type "application/x-zip-compressed."
I changed that to "application/zip" and redeployed our resources, and the filepath property is now working correctly.

Thanks!
Photo of Nicholas L.

Nicholas L.

  • 382 Points 250 badge 2x thumb
wow....this saved me a huge headache. Was stuck on this for hours. Thanks guys.