method

encode_filename

rails latest stable - Class: ActionDispatch::Http::UploadedFile

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.1.8) is shown here.

encode_filename(filename)
private

No documentation available.

# File actionpack/lib/action_dispatch/http/upload.rb, line 71
      def encode_filename(filename)
        # Encode the filename in the utf8 encoding, unless it is nil
        filename.force_encoding(Encoding::UTF_8).encode! if filename
      end