Assuming you are using Kentico 13. It depends also whether you are using page attachments or media files. You can edit their metadata as described here. And then, when retrieving the given file, retrieve also its metadata. Displaying page attachments and displaying media files.