Forum Discussion
alchemiz
6 years agoContributor III
BTW, the filename that you will assign needs to be unique for each streaming document otherwise it will be overwritten by the next streaming document and you will end up just a single file (the last document file to stream)
for unit testing, probably you can use Math.randomUUID() as Date.now formatted to milliseconds sometimes overlaps and might cause duplicate filenames