method
encode_filename
v4.0.2 -
Show 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