Problem We used a super simple code in ruby to generate tempfiles with dynamic filename.
temp_file = Tempfile.new([title, '.pdf']) where title is a variable value (Input taken from user).so if your insert special or not allowed/expected character as a filename in any Operating system this code will fail.