Changed params[name] to params[object_name] in upload controller