I am handling an upload using fileUpload() inside a coldbox application. It was initially in a model, where I was unzipping the uploaded file, importing CSV files then processing the database using array.each with parallel = true in several locations. Every time the loops ran, the server duplicates the tmp-xxx.upload file in the \WEB-INF\lucee-web\temp folder. This only happens when the parallel = true flag is passed.
It doesn't matter whether the fileUpload() function is in the model or the handler. It duplicated the 10MB zip folder so many times it ate 126GB of hard drive space and crashed the database in under 5 minutes.
I've checked this ticket and confirmed the issue happened on lucee latest version 188.8.131.52-SNAPSHOT also. Using fileupload and with arrayeach parallel=true created the temp.upload file in temp directory. Almost big gb size files are created. Also created so many files in destination directory too.
Potentially related bug: