EllisLab/CodeIgniter — pull request #3213 by obozdag (2014-09-01 01:24:52+00:00)
Title: add field as preference to upload class

I always look for the input field name in preferences to change according to my upload form. $field variable in do_upload method should be in preferences. I have added $field as class property and for backward compatibilty I have added the line below to the do_upload function.
$field = ($this->field) ? $this->field : $field;