Fileupload aways write to temp folder

my anti-virus(trendmicro) show virus in the folder “C:\lucee\tomcat\webapps\ROOT\WEB-INF\lucee\temp”.
but i dont use fileupload function ,
anyone post file aways write to temp folder ,
i set cffile allowedextensions attribute cant block fileupload and 404 page will uploadfile too.

my temp folder is “C:\lucee\tomcat\webapps\ROOT\WEB-INF\lucee\temp”

sample code

<!DOCTYPE html>
<form action="index.cfm" method="post" enctype="multipart/form-data">
  Select file to upload:
  <input type="file" name="fileToUpload" id="fileToUpload">
  <input type="submit" value="Upload Image" name="submit">

Don’t forget to tell us about your stack!

OS: win10
Java Version: 11.0.7 (AdoptOpenJDK) 64bit
Tomcat Version: Apache Tomcat/9.0.50
Lucee Version: Lucee

Yes, that is how things work, though it’s a surprise for many. See a post I did on the topic, with a bit more that may help alleviate your concern. Granted, that was written for ACF, but you use the info to assess Lucee. Or maybe someone else will chime with other thoughts.

1 Like