Upload files: Use mkstemp instead of tmpfile for location control

Version 1.61.0

Bugfix
Finished

The upload of files using multipart/form-data was using tmpfile() to create a file location for upload. This usually ended up in /tmp. For very large files, this might not have been large enough. Changed to use mkstemp, so we can use the tmpdir=/home/tmp directadmin.conf variable, thus using /home/tmp (or any desired path, via tmpdir var), so you can control where this larger data might end up. Note the tmpdir is used for various other things, not just uploads. ---- Compile time: May 6 2020 at 16:41:18

Interested to try DirectAdmin? Get a 30-day Free Trial!