ActionController::UploadedFile


Files

Methods

Public Class methods

included (base)

Public Instance methods

original_filename ()

Take the basename of the upload‘s original filename. This handles the full Windows paths given by Internet Explorer (and perhaps other broken user agents) without affecting those which give the lone filename. The Windows regexp is adapted from Perl‘s File::Basename.