File Manager¶
File Manager controller gets calls from the front end and responds in json format.
/fm/dir¶
Returns the contents of a directory
Parameters
pathThe relative path (GET/POST)
Example:
curl 'https://gilacms.com/fm/dir/?t=assets'
Result:
[
{
"name": image.jpg,
"size": 145152,
"mtime": 2019-02-01 11:01:01,
"mode": 33206,
"ext": "jpg"
},
.....
]
/fm/save¶
Saves contents in a file
Parameters
pathThe destination file (GET/POST)contentsThe data to save (POST)
/fm/move¶
Renames a folder or a file
Parameters
pathThe source relative path (GET/POST)newpathThe destination relative path (POST)