...
- Command (GetFolder,GetFolderAndFiles,CreateFolder,FileUpload)
- Type (Image etc.)
- ServerPath (possible subdirectory to work from)
- CurrentFolder (current folder selected when file browsing)
- New FolderName'NewFolderName'
In the channel, I have code in SetRuntimeData setRuntimeData to detect when a request is being made by looking for one of the above parameters. I then call connector(rd) to handle the request. Attached are connector.java and DownloadWorker.java that
handle these requests. The downloadworker that is created should be available to the channel when getName, getContentType and getInputStream are called in the channel.
Note | ||
---|---|---|
| ||
This code will not run unmodified because file environments are different (this code is based on Hypercontent1.3). If you already have DownloadWorker code, you can replace these calls with your own. |
In most cases, this code will return an XML file as response. The formats are explained on the FCKEditor site.
...