Daniel Ouellet wrote:
The goal: Only allow PDF upload to that directory with the ftp client and also no possibility to rename the files to .php for example.
...
Allow, delete, replace, upload of *.pdf ONLY via ftpd for the reason above?
First, ftpd isn't responsible for sftp - you are after sftp-server. Second, sftp-server doesn't have any content or filename filtering ability. Its permissions are those of the user that ran it (via ssh). Finally, to avoid the problems that you are concerned about, you can adjust your webserver configuration to deny access to anything other than *.pdf files in the upload directory. Or, you could have a separate upload directory (outside the document root), which is periodically synchronised to the one in the document root - taking care that that the sync only copies *.pdf files. -d

