Flowdock
method

original_filename

Importance_1
v2.0.3 - Show latest stable - 0 notes - Class: ActionController::UploadedFile
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.

Show source
Register or log in to add new notes.