Moving file functionality out of controller and into utility class
Moving functionality for adding a file to the media database from test utilities to production utilities