Updated Upload with support for Mongoid 4