StoreUnique Method
Upload a file with a Unique Name to an FTP server.
Syntax
ftp.storeUnique([callback])
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for this method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
This method is used to upload a file with a Unique Name to an FTP server. Similar to the Upload method but the server determines a unique name for the LocalFile to be saved on the current directory given by RemotePath. The server includes the new name of the file in its response. The user should check the PITrail event, or LastReply property to retrieve this generated filename.