Module Paperclip::Upfile
In: lib/paperclip/upfile.rb

The Upfile module is a convenience module for adding uploaded-file-type methods to the File class. Useful for testing.

  user.avatar = File.new("test/test_avatar.jpg")

Methods

Public Instance methods

Infer the MIME-type of the file from the extension.

Returns the file‘s normal name.

Returns the size of the file.

[Validate]