include sample_top.html
Caravan Business Server>Examples>FTP


Creating FTP Objects & Uploading Files
Host Name
/IpAddress:Port No
*
User ID*
Password*
Upload Folder
File Name*
Fields denoted with *are mandatory
// script used to connect to FTP server and upload a file will be executed on submitting. if form(txtHostname) // following lines create the FTP object and assigns username property, // password property and Folder property --- the folder to which the file // the file will be uploaded. ftp ftpsite=form(txtHostname) ftpsite(user)=form(txtuserid) ftpsite(password)=form(txtpassword) ftpsite(folder)=form(txtUploadfolder) // line below uploads the file ftpsite(file)=form(txtfilename) //in below line ftpsite(filename) returns the name of if upload is successful. if ftpsite(filename) "
";ftpsite(filename);" uploaded successfully.
" else "
File not uploaded!!!
" endif endif
  include sample_bottom.html