# Upload a file (multipart, "file" field, ≤15MB)

multipart/form-data upload to R2. Any linked issue (directly via issueId, or via the target comment's issue) must belong to the caller's org (else 404). 400 when the file is missing or larger than ~15MB; 501 when storage is not configured. Returns 200 (not 201).

Canonical: https://easerix.com/docs/developers/api/tasks/attachments/createAttachment

{/* 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="tasks" operations={[{"path":"/v1/attachments","method":"post"}]} />
    </>
  );
}
