Setting File Permissions with the FTP Component


Some FTP servers allow file permissions to be modified after a file is uploaded. If the FTP server supports this functionality, you can send a command to change the permissions of the uploaded file.

To do this, use the Command property to send the appropriate FTP command:

FTP1.Command = "SITE chmod " + "<permission mask>" + " " + filename

Here, <permission mask> represents the argument passed to the chmod command (for example, 755).

We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@nsoftware.com.