Skip to content
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

combination of valid/invalid files success in /convert/office #149

Open
arun-cts opened this issue Nov 25, 2019 · 1 comment
Open

combination of valid/invalid files success in /convert/office #149

arun-cts opened this issue Nov 25, 2019 · 1 comment
Labels

Comments

@arun-cts
Copy link

when invoking the /convert/office endpoint, I send a list of files (POST form-data)

if all are valid (office format etc.), the call succeeds with 200 OK
if one or more are invalid (e.g. .zip file) the call still succeeds with 200 OK - it should return 206 PARTIAL CONTENT or 400 Bad Request

@gulien gulien added bug Something isn't working and removed bug Something isn't working labels Nov 26, 2019
@gulien
Copy link
Collaborator

gulien commented Nov 26, 2019

Actually it will search for all files with a valid format. It returns a 400 Bad Request only if it did not found any files.

For instance:

  • you send one .docx and one .zip file
  • Gotenberg will convert the .docx file and ignore the .zip file
  • you send only a .zip file
  • Gotenberg returns a 400 Bad Request

@gulien gulien added the enhancement New feature or request label Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants