Skip to content

Allow template zip to contain folder in root of archive #1336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jakejackson1 opened this issue May 10, 2022 · 0 comments
Open

Allow template zip to contain folder in root of archive #1336

jakejackson1 opened this issue May 10, 2022 · 0 comments
Milestone

Comments

@jakejackson1
Copy link
Member

Description
We get a lot of support tickets about trouble installing templates due to incorrectly zipping them up. https://docs.gravitypdf.com/v6/developers/install-template-via-template-manager#common-problems

Let's allow zip folders to contain one directory in the root of the archive and then the template(s) inside that folder.

Step To Reproduce
Steps to reproduce the behavior:

  1. Zip up a folder that contains PDF templates
  2. Upload via the PDF Template Manager

Expected behavior
Currently this will fail to install due to in invalid archive. The new behaviour will allow this behaviour if the zip contains one directory with the templates then inside it. Note: if there are multiple directories in the root of the archive this will still be considered invalid.

@jakejackson1 jakejackson1 added this to the 6.x milestone May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant