libURLftpUploadFile | |||||||||||||
Type | command | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Associations | internet library | ||||||||||||
Summary | Uploads a file to an Internet server asynchronously via FTP. | ||||||||||||
Introduced | 2.0 | ||||||||||||
OS | mac, windows, linux | ||||||||||||
Platforms | desktop, server | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Related | Property: script Message: startup, openBackground, preOpenStack, openStack, preOpenCard Library: Internet library, library Keyword: URL, ftp, file Glossary: LiveCode custom library, application, main stack, handler, upload, Standalone Application Settings, message, standalone application, binary, parameter, server, command, object Function: files, URLStatus Command: libURLftpUpload, libURLDownloadToFile, put, group | ||||||||||||
Security | network | ||||||||||||
Description | Use the libURLftpUploadFile command to put a file on a server. The libURLftpUploadFile command transfers the data directly from the file to the server. Unlike libURLftpUpload (or the put command used with an FTP URL), the data does not all need to be in memory at once, so this command is a better choice for large files. The libURLftpUploadFile command transfers the file in binary mode. The callbackMessage is sent to the object whose script contains the libURLftpUpload command, after the upload is complete, so you can handle the callbackMessage to perform any tasks you want to delay until the file has been uploaded. Two parameters are sent with the message : the URL and the URLStatus of the file.
| ||||||||||||
Tags | networking |