I've implemented my own connector.asp and it works for all the CKFinder functions I wish to process except for CopyFiles and MoveFiles. In both those cases, my code does the actual copying or moving of the file and returns the same XML as is returned by the out-of-the-box CKFinder connector.
However, whereas the out-of-the-box solution displays an error message upon failure or a confirmation message upon completion, I can't get that to happen when using my connector (though error messages display perfectly fine for other functions like trying to upload a file with an unacceptable extension). Furthermore, the out-of-the-box solution automatically refreshes the contents of the selected folder when a file has been moved somewhere else. I can't get this to happen when using my connector.
What am I missing?
Here's the XML I'm returning to the CKFinder tool. In both those cases, no errors occured so I expect to see a confirmation message and a screen refresh in the case of MoveFiles.:
For CopyFiles:
<Connector resourceType="Images">
<Error number="0" />
<CurrentFolder path="/Sub1/Sub2/" url="/UI/userfiles/Sub1/Sub2/" acl="187" />
<CopyFiles copied="1" copiedTotal="1" />
</Connector>
For MoveFiles:
<Connector resourceType="Images">
<Error number="0" />
<CurrentFolder path="/Sub1/Sub2/" url="/UI/userfiles/Sub1/Sub2/" acl="187" />
<MoveFiles moved="1" movedTotal="1" />
</Connector>
Thanks!
However, whereas the out-of-the-box solution displays an error message upon failure or a confirmation message upon completion, I can't get that to happen when using my connector (though error messages display perfectly fine for other functions like trying to upload a file with an unacceptable extension). Furthermore, the out-of-the-box solution automatically refreshes the contents of the selected folder when a file has been moved somewhere else. I can't get this to happen when using my connector.
What am I missing?
Here's the XML I'm returning to the CKFinder tool. In both those cases, no errors occured so I expect to see a confirmation message and a screen refresh in the case of MoveFiles.:
For CopyFiles:
<Connector resourceType="Images">
<Error number="0" />
<CurrentFolder path="/Sub1/Sub2/" url="/UI/userfiles/Sub1/Sub2/" acl="187" />
<CopyFiles copied="1" copiedTotal="1" />
</Connector>
For MoveFiles:
<Connector resourceType="Images">
<Error number="0" />
<CurrentFolder path="/Sub1/Sub2/" url="/UI/userfiles/Sub1/Sub2/" acl="187" />
<MoveFiles moved="1" movedTotal="1" />
</Connector>
Thanks!
Re: MoveFiles & CopyFiles fail to display confirmation or er