Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    exportFilename with invalid characters

    Hello, if in the customExportCustomResponse sample (exportFilename attribute) I add some character as '/', both Chrome and Firefox (on MacOS at least) won't download the file.

    Is it intended that the framework won't sanitize it?

    #2
    If you allow user input of the exportFileName (most apps don't), we would recommend adding a validator to limit to characters you want users to be able to use.

    To "sanitize" it automatically and do a good job of it, we'd have to have code that knows the platform-specific characters for MacOS, Window, Linux, perhaps Solaris, then various mobile devices, and be able to sniff all of those devices and operating systems accurately .. it would get ridiculous and take a lot of maintenance.

    Also, what most people actually would want is no special characters at all, but we don't want to enforce that and limit using special chars on platforms that allow them.

    Comment


      #3
      Sounds fair, I just want to check if I actually need to continue removing those characters (the filename is created based on business name which I can't control).

      Thanks for the clarification

      Comment

      Working...
      X