Skip to main content
An Attachment can be any file type; Relay stores the bytes unchanged. A declared MIME type tells Relay how to serve the file, not whether its contents are safe. Relay serves every download with headers that stop a browser from guessing the type or running the content, but apply your own checks before you process a downloaded file. Profile and group photos are the exception; they accept images only, and their own pages list the types.

Choose a file type

SVG can be allocated, uploaded, and downloaded like any other type. Unknown types remain downloadable files.

Read the download headers

Every download carries the same safety headers:

Supply media metadata

Keep within the limits

Profile photos accept a public image URL or a completed owned Attachment of a profile-image type. A group photo accepts a public image URL that passes the image checks, or a completed owned image/* Attachment.

When it fails

Next steps