|
AdobeBridgeCS5SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--BasicFTP
Shows how to upload and download files to and from an FTP server.
This code shows how to connect to an FTP server using the FTP object, then use the object to upload files to the FTP server from Bridge, and download files from the server to Bridge. This sample uses a synchronous connection, which blocks the main thread, so it is best to choose small files to transfer. For a demonstration of an asynchronous connection, see AsynchronousFTP.jsx
You must customize the specific values for the FTP server, passwords, directories and files
to match your FTP settings and file system. You must upload at least one file before attempting
to download a file.
See:
Field Summary | |
String |
ftpAddress
The FTP server address to which you want to upload, which you must change to an FTP server to which you have access. |
String |
ftpDir
The directory where uploaded files are stored on the FTP server. |
String |
ftpPassword
The ftp password. |
String |
ftpUsername
The ftp username used to connect to the FTP server. |
String |
requiredContext
The context in which this snippet can run. |
Constructor Summary | |
BasicFTP()
|
Method Summary | |
Boolean
|
canRun()
Determines whether snippet can be run given current context. |
Boolean
|
run()
Functional part of this snippet, creates the FTP object, and connects to the FTP server. |
Field Detail |
String ftpAddress
String ftpDir
String ftpPassword
String ftpUsername
String requiredContext
Constructor Detail |
BasicFTP()
Method Detail |
Boolean canRun()
Boolean run()
Adds "upload" and "download" items to the context menu for the Bridge Content pane.
|
AdobeBridgeCS5SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |