Skip to main content
Besides the files a method uploads (html, files, assets…), every route takes two more ways to bring files: archives and downloadFrom.

Archives

Gotenberg unpacks each ZIP you pass in archives, and each entry counts as an uploaded file. A path keeps its base name; a Buffer or ReadStream is named archiveN.zip.

Download from URLs

downloadFrom lists URLs Gotenberg downloads before it starts, as if you had uploaded the files.
Gotenberg names each file by its filename, else by the server’s Content-Disposition header, else by the end of the URL path when it has an extension. Nothing naming the file is refused with a 400.

Use a downloaded file in a stage

A stage names a downloaded or unpacked file with { name }:
See Stages — files a stage needs. Operators can turn downloads off, or restrict where they may go: see Gotenberg – webhooks and downloads.