This change improves Kubernetes (k8s) compatibility.
One of the main concepts in k8s is the idea of ephemeral pod - which can be destroyed/recreated at any moment.
In such case - entire media folder will vanish.
As result of "vanished media folder" - application should be capable of bringing back i.e. download from cloud storage all "vanished" files:
page hocr files
document file (i.e. original document)
Notice that page previews won't be downloaded - they will be locally regenerated (but before that, original document must be downloaded).
This change improves Kubernetes (k8s) compatibility.
One of the main concepts in k8s is the idea of ephemeral pod - which can be destroyed/recreated at any moment. In such case - entire media folder will vanish. As result of "vanished media folder" - application should be capable of bringing back i.e. download from cloud storage all "vanished" files:
Notice that page previews won't be downloaded - they will be locally regenerated (but before that, original document must be downloaded).