Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets the list of FTP commands to pass to the server after the transfer type is set.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Value... | The ftp commands. | "" |
Returns "OK" on success.
See also PREQUOTE option in CURL manual.
Create folder before upload:
MBS( "CURL.SetOptionPreQuote"; $curl; "MKD testfolder" )
Rename file before uploading using two FTP commands:
MBS( "CURL.SetOptionPreQuote" ; $curl ; "RNFR foo.txt"; "RNTO bar.txt" )
Delete file before upload:
MBS( "CURL.SetOptionPreQuote"; $curl; "DELE test.txt" )
Delete folder before upload:
MBS( "CURL.SetOptionPreQuote"; $curl; "RMD testfolder" )
Set file permissions:
MBS( "CURL.SetOptionPreQuote" ; $curl ; "SITE CHMOD 777 testfile")
Call with three parameters:
MBS( "CURL.SetOptionPreQuote"; handle; $value1; $value2; $value3 )
Created 18th August 2014, last changed 5th June 2021