rejetto forum
Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: shaiol on October 19, 2017, 12:21:47 PM
-
How can I remotely rename a file using POST commands ?
-
Probably not really a useful answer, but, I've only renamed files using the {.rename|oldname|newname.} command macro. That may well do some post under the covers, but as far as I know, the only way to rename files is to have some code in the server's config call the rename macro.
-
???
https://community.spiceworks.com/topic/2019211-script-to-rename-html-files-based-on-content
for hfs, the macro is best, but it looks like you were wanting a option like php post header editing?
http://php.net/manual/en/function.rename.php
html coding - get/post
https://www.w3schools.com/tags/ref_httpmethods.asp
HFS macro would be the correct way to do this.