How to upload files on an FTP server from Ebase

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Jignesh
Ebase User
Posts: 12
Joined: Thu Sep 13, 2007 10:24 am

How to upload files on an FTP server from Ebase

#1

Postby Jignesh » Thu Oct 11, 2007 10:52 am

I have prepared a sample form to demonstrate this. It uses a custom resource written in Java.
  • 1) Download the http://www.ebaseftp.com/forum/forumfiles/ftp_test.zip

    2) Upzip this into a temp folder

    3) Copy FTP_TEST.xml into your <ufs>\UfsServer\transport folder

    4) Import this file via Ebase designer.

    5) Copy FtpClient.class file into <ufs>\UfsServer\tomcat\webapps\ufs_s\WEB-INF\classes\com\ebasetech\ufs\customresources folder. (Note: If you do not have this folder structure please create it)

    6) Copy javaftpapi.jar file into <ufs>\UfsServer\tomcat\webapps\ufs_s\WEB-INF\lib folder

    7) Restart your Ebase server and run the form FTP1 in Business projects->FTP_TEST
Note: Some of the field values are pre-set as an example. Please remember to change these values before you test. If you have any issues while testing please look at the log files as they will relevant information about your file upload.

How it works:

1) Ebase form passed the relevant values to the custom function FTPCLIENT
2) FTPCLIENT uses the javaftpapi.jar file and uploads the file.
0 x

Who is online

Users browsing this forum: No registered users and 6 guests