josegonzalez/cakephp-upload — pull request #211 by TeckniX (2014-05-30 18:05:26+00:00)
Title: Added empty check for actual model data

The runtime used has a simple empty array of the file, which still gets processed, because the empty array file isn't 'technically' empty.

The same happens if the $field is actually an empty string, aka doesn't contain any proper data.

In my case I had to over-write the $field array, when certain conditions were met. This caused an empty rename to be triggered, thus the need for the above check.