(New page: == RenameFile == Renames a file. === Sample Request === In the root directory of the resource type “Files”, rename the file “My File.jpg” to “New Name.jpg”. <pre>connector.p...) |
m (moved CKFinder/Server Side Integration/The Commands/RenameFile to CKFinder 1.x/Server Side Integration/The Commands/RenameFile) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{CKFinder_SSI_Warning}} | ||
== RenameFile == | == RenameFile == | ||
Latest revision as of 07:46, 28 May 2010
RenameFile
Renames a file.
Sample Request
In the root directory of the resource type “Files”, rename the file “My File.jpg” to “New Name.jpg”.
connector.php?command=RenameFile&type=Files¤tFolder=%2F&fileName=My%20File.jpg&newFileName=New%20Name.jpg
Sample Response
<?xml version="1.0" encoding="utf-8"?> <Connector resourceType="Files"> <Error number="0" /> <CurrentFolder path="/" url="/userfiles/files/" acl="255" /> <RenamedFile name="My File.jpg" newName="New Name.jpg" /> </Connector>
Note that the file names may contain non ASC-II chars.