adds class based upload_to callables