If the file names are long, especially when the PDF has unicode file name & its name is url encoded, it might exceed the max allowed filename length in linux (and probably other OSes) which is 255 characters.
This would be fine in s3 as that has a file name limit of 1024 characters, but would result in ENAMETOOLONG errors when Zerox tries to download and write to the disk.
This PR prevents ENAMETOOLONG errors by using a UUIDv4 as the file name.
If the file names are long, especially when the PDF has unicode file name & its name is url encoded, it might exceed the max allowed filename length in linux (and probably other OSes) which is 255 characters.
This would be fine in s3 as that has a file name limit of 1024 characters, but would result in
ENAMETOOLONG
errors when Zerox tries to download and write to the disk.This PR prevents
ENAMETOOLONG
errors by using a UUIDv4 as the file name.