validation error: invalid value format "data%253Atext%252Fcss%253Bbase64%252CYm9keSB7IGJhY2tncm91bmQ6IGJsdWUgfQ%253D%253D" for parameter css required by preview task (invalid format data%253Atext%252Fcss%253Bbase64%252CYm9keSB7IGJhY2tncm91bmQ6IGJsdWUgfQ%253D%253D)
Possible Solution
Filestack must be expecting a literal url. Preferably, Filestack would check if the url provided is a data url, and if so, handle accordingly.
Removes the requirement of hosting a static css file.
Speeds up development as the css url is cached by Filestack which means that if you want to check changes to the css file, you must either wait some period for the cache to be refreshed or provide a different css url. Using a data url would circumvent this.
Allows for dynamically supplying css based on conditions (someone might want that?)
Caveat
All that to say, filestack-js is merely creating an iframe and supplying the preview url as the src, so it is not at all responsible for how the css url is handled. Is there repository or other suitable place to submit this request?
Expected Behavior
Preview API supports using a data url as css.
Current Behavior
Currently, receiving an error:
Possible Solution
Filestack must be expecting a literal url. Preferably, Filestack would check if the url provided is a data url, and if so, handle accordingly.
For example, a data url can be used in a like so:
Here's a demo: https://codesandbox.io/s/dazzling-pine-cdksy?file=/src/index.js
Context
Some benefits of supporting css as data url:
Caveat
All that to say, filestack-js is merely creating an iframe and supplying the preview url as the src, so it is not at all responsible for how the css url is handled. Is there repository or other suitable place to submit this request?
For instance, hitting the preview url directly produces the same error: https://cdn.filestackcontent.com/preview=css:%22data%3Atext%2Fcss%3Bbase64%2CYm9keSB7IGJhY2tncm91bmQ6IGJsdWUgfQ%3D%3D%22/SGe380ViQ7W8efiX6sdG
Your Environment