How to get url or an Attachment

It seems like this isn’t possible to gather from within a view js/ts. But, if you are generating an attachment in cloud code you can gather this information. Would be a good feature request.