method

original_filename

rails latest stable - Class: ActionController::UploadedFile

Method deprecated or moved

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

original_filename()
public

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.