Atomic FTP uploads.
Amidst doing a lot of updates to the backend script and hence a lot of uploaded files, I constantly received messages from members about errors. These errors are due to our users loading a page with a half uploaded PHP script. And since PHP is stupid, it’ll parse the file and try and execute it anyway. So to improve the user experience whilst we’re performing maintenance and to alleviate time wasted looking at errors that auto fixes itself once the file is uploaded, I wanted a way to atomically upload a file.
So I searched through the documentation of Proftpd and found a nifty option that is turned off by default. This option basically allows me to upload files to a tmp directory and then move the file to where I intend to upload to, providing an atomic like upload experience.
No longer should you see errors from half uploaded PHP files.