# Stream an attachment's bytes (members)

For an attachment on a page the caller can see, streams the file
itself (Content-Disposition attachment). Exports use it to bundle
images, since a browser cannot read the cross-origin storage redirect.


Canonical: https://easerix.com/docs/developers/api/notes/sharing/getAttachmentContent

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="notes" operations={[{"path":"/v1/attachments/{id}/content","method":"get"}]} />
    </>
  );
}
