return hash instead of object in upload