Temp folder on upload

Hi,
is there a way to specify a temp directory when I upload a file ? The example https://echo.labstack.com/cookbook/file-upload use the default folder /tmp which is a tiny partition (2Go), but I need to upload big files.
Thanks