# Attach the PDF to a draft

Multipart upload (field "file", 25 MB max). Accepts PDF, Word (.doc/.docx), Excel (.xls/.xlsx), CSV (comma-, semicolon- or pipe-separated), PowerPoint (.ppt/.pptx), and image (JPG/PNG/GIF) files, detected from content, not the filename — anything that isn't already a PDF is converted to one server-side before it's stored. Page count and SHA-256 are computed from the resulting PDF and replace the client-asserted values. Drafts only. An empty file is a 400, and the stored file name is cut to 255 characters.

Canonical: https://easerix.com/docs/developers/api/sign/documents/uploadDocumentFile

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