method

encode_filename

encode_filename(filename)
private

No documentation available.

# File actionpack/lib/action_dispatch/http/upload.rb, line 24
      def encode_filename(filename)
        # Encode the filename in the utf8 encoding, unless it is nil or we're in 1.8
        if "ruby".encoding_aware? && filename
          filename.force_encoding("UTF-8").encode!
        else
          filename
        end
      end