In wso2 carbon based products default temporary folder is {product_home}/tmp.
If you need to change that location to a different location here is the way to do it.
You can change the location by changing the locations in start up scripts.
1) In Linux (/bin/wso2server.sh) change following parameter’s location.
-Djava.io.tmpdir=“$CARBON_HOME/tmp”
2) In Windows (/bin/wso2server.bat) change the following parameter’s location.
-Djava.io.tmpdir=“%CARBON_HOME%\tmp”