Update UploadBehavior.php

Made most of Jose's recommendations.

Still some work to do, but getting there.