WebFtpPut cannot send files larger than 2GB
The issue of being unable to send files larger than 2GB, with WebFtpPut, is due to a limitation with the integer data type, which has a maximum value of ‘2,147,483,647’ (equivalent of roughly two GB, when using numbers to represent bytes).
See the ‘In Computing’ section of the following Wiki article:
The limitation does not only apply to the ‘number’ variable, which is used to specify ‘nBytes’, but also to the ‘nBytes’ parameter itself. As ‘nBytes’ is also a number (Integer), a value higher than ‘2,147,483,647’, cannot be used here (even when hard coded).
An alternative would be to use the ‘WebFtpPutFile()’ function instead, as it sends an actual file (only integer is the file handle). However you may run into machine resource issues with such a large file, due to the file needing to be stored in memory (free / available RAM) - especially if running multiple users.