Limit number of pages a document can have on upload. - #489
Conversation
|
I think that's fine, actually. We'll get some insight into how often people are hitting this limit and can decide what to do with that. |
|
I was able to upload a document on staging. The upload succeeds but processing fails, and we end up in this weird state: https://www.staging.documentcloud.org/documents/20014763-south-carolina-hearing-office-alj-dispositions-01-01-10-to-02-21-18/ This was something already on staging, so here's the original file: https://documentcloud-staging-files.s3.amazonaws.com/documents/20010618/south-carolina-hearing-office-alj-dispositions-01-01-10-to-02-21-18.pdf We may need a check on the frontend to catch this earlier, or a better way to indicate that processing failed. These are probably follow-on issues. Here's how it looks in the API: |
|
Yea, it raises PageCountError() intentionally, similar to PdfSizeError(). |
It raises a PageCountError which gets returned in the API. Here is me trying to upload a 2001 page document that lives on production on staging:
https://api.staging.documentcloud.org/api/documents/20014762/errors/
Closes part 1 of #479