getomni-ai / zerox

PDF to Markdown with vision models
https://getomni.ai/ocr-demo
MIT License
6.58k stars 358 forks source link

`ENAMETOOLONG` on documents with extra long file names #60

Closed tylermaran closed 1 month ago

tylermaran commented 1 month ago

I've noticed the occasional ENAMETOOLONG error when files are uploaded. We should add a 255 character max to these files names.

ENAMETOOLONG: name too long, open '/tmp/zerox-temp-6755/1729463914278_%C3%A9%C2%87%C2%9C%C3%A7%C2%9F%C2%B320240306%C3%A4%C2%BC%C2%9A%C3%A5%C2%A0%C2%B1%C3%A6%C2%8C%C2%81%C3%A8%C2%BE%C2%BC%C3%A7%C2%99%C2%BA%C3%A9%C2%80%C2%81%C3%AF%C2%BC%C2%88%C3%A8%C2%...