You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Manually inspecting a couple of DBs (CEJIL, IHRDA), a series of inconsistent patterns have been found:
Some files have mimetype defined, others don't. Particularly in CEJIL there are PDF files without mimetype
Some files defined as "attachment" (as opposed to "document") have document like metadata (TOC, language, content, etc), while others don't. I wonder what is the cause for this difference.
I do not know at the moment the possible pathway for these discrepancies in how files are stored in the DB, maybe this is working as intended. I suggest we double check.
The text was updated successfully, but these errors were encountered:
We know that, at some point, we stopped storing mimetypes and then we resumed storing them. So, for older collections, I believe it is expected that files uploaded at a certain stage could not have a mimetype defined. I don't think this has any downside effect.
The second part if more confusing, maybe some main documents got demoted to attachments at some point somehow? @daneryl points out that OCR process does, indeed, demote files from main files to attachments, in order to keep the original document. If that document is OCRed after the process of automatic TOC, then attachments could indeed have this un-expected properties. This one we need to check.
Still, is this causing any problems or was this just discovered by analyzing the database?
Regarding the first case, maybe that is what was causing inconsistent behavior in the download button? It needs to be confirmed but maybe the fact that it does not have mimetype affects whether the file is downloaded directly or opened in the browser? Apart from that I don't see any downside except potential future problems if the mimetype is used for something.
Regarding the second case, it could be but if OCR is run on a file then automatic TOC was not preformed on that file. As far as I know, automatic TOC doesn't include an OCR step.
Manually inspecting a couple of DBs (CEJIL, IHRDA), a series of inconsistent patterns have been found:
I do not know at the moment the possible pathway for these discrepancies in how files are stored in the DB, maybe this is working as intended. I suggest we double check.
The text was updated successfully, but these errors were encountered: