Module ActionController::UploadedFile
In: lib/action_controller/request.rb

Methods

Public Class methods

Public Instance methods

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.

[Validate]