NcFTPd general.cf file configuration
Don't forget to restart NcFTPd after modifying the general.cf file.
By default, NcFTPd writes data into files being uploaded immediately. This may be undesirable if you would prefer that the uploaded file be created only after the entire file has been uploaded. For example:
You don't want to overwrite existing files with files that had been partially uploaded.
You don't want incomplete uploads at all.
You have another process monitoring for files to be processed that match a certain name, and you don't want that process to handle the file until it is completed.
If you set this option to yes, NcFTPd will write data into a temporary file (into the same directory, but named .upload.filename) and then rename the file to its final pathname when completed. If the file was not completely uploaded, the temporary file is deleted.
This option does not take effect when:
The user is using the FTP append command (APPE) to append directly to the file;
The user is using the FTP store unique command (STOU) to create a unique random name;
The user is writing into the file at a specified offset (in other words, resuming an upload).
This option also tries to prevent other remote users from uploading files with the same name while the file is being uploaded, but if that is your intent you may want to use the option lock-uploads instead.