3

Is it possible to configue Pure-fptd to use a temporary filename during upload?

At the moment files that are uploaded are given their final name from the very start of the upload. I would like it to have temporary name until the file is completely transfered. First then should the file get its final name. Preferably the file would not be visible in the file listing during upload.

The only setting I've seen and tried is the notruncate but it assumes that there is a file present but I might have missed some other vital option.

2 Answers 2

1

No, you would have to implement a temporary filename during uploads in the FTP client, followed by a rename command.

You could upload to temp file starting with a . dot and use the PureFTP switch --prohibitdotfilesread to prevent downloading during the upload, then rename to the final file name which should be atomic.

3

Yes, NoTruncate does what you need.

Despite the wording in the configuration file, this option does not require a file with the same name to exist on the server.

To enable it:

  • in Pure-FTPD 1.0.29 (on Fedora) you would set in /etc/pure-ftpd/pureftpd.conf:

NoTruncate yes

  • in Pure-FTPD 1.0.36 (on Ubuntu) you would create a file called NoTruncate in /etc/pure-ftpd/conf/ and set its content to yes.
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .