Skip to main content
Question

Files with square brackets in filename

  • May 3, 2024
  • 1 reply
  • 137 views

Forum|alt.badge.img

As per the title, I need to copy a file that has [ ] in the filename. When trying to upload, it complains that they’re illegal characters?

 

I guess the workaround would be to upload it without the square brackets, then include a PS command to rename it once it’s been copied down?

 

Any other workarounds (or a fix?)

 

Thanks

Danny

1 reply

jack.smith
Forum|alt.badge.img+1
  • All Star
  • May 3, 2024

@IamDannyOConnor I’d agree to rename the file, then rename it in the worklet to the desired output. I’ve tested with 32-bit PowerShell running as system and it seemed to rename just fine while doing it that way. 

The input validation in a web app makes sense from a security perspective.