Skip to content

CP-14714 - Accept PNG/JPG files when creating a signing form via the API - #85

Merged
bernardodsanderson merged 1 commit into
mainfrom
CP-14714
Aug 14, 2026
Merged

CP-14714 - Accept PNG/JPG files when creating a signing form via the API#85
bernardodsanderson merged 1 commit into
mainfrom
CP-14714

Conversation

@bernardodsanderson

Copy link
Copy Markdown
Collaborator

What

Admins can now create a signing template from a photo of a paper form (PNG or JPG), not just a PDF. Invalid files still fail with the same error as before.

Why

Uploading an image of a form through the API was rejected even though the same file works in DocuSeal's own upload UI. That blocked image-based forms.

How to test

POST /api/templates/pdf with a base64 PNG or JPG in documents[].file. The template should create and show a preview. A PDF should still work. A text file should still return 422 "Unable to create template".

Screenshot

Screenshot 2026-08-14 at 1 03 27 PM

What
Admins can now create a signing template from a photo of a paper form (PNG or JPG), not just a PDF. Invalid files still fail with the same error as before.

Why
Uploading an image of a form through the API was rejected even though the same file works in DocuSeal's own upload UI. That blocked image-based forms.

How to test
POST /api/templates/pdf with a base64 PNG or JPG in documents[].file. The template should create and show a preview. A PDF should still work. A text file should still return 422 "Unable to create template".

@jewls618 jewls618 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid. 👍

@bernardodsanderson
bernardodsanderson merged commit 7c3b2d1 into main Aug 14, 2026
9 of 10 checks passed
@bernardodsanderson
bernardodsanderson deleted the CP-14714 branch August 14, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants