method
encode_filename
rails latest stable - Class:
ActionDispatch::Http::UploadedFile
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