rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: shaiol on October 19, 2017, 12:21:47 PM

Title: remotely renaming files using post
Post by: shaiol on October 19, 2017, 12:21:47 PM
How can I remotely rename a file using POST commands ?
Title: Re: remotely renaming files using post
Post by: skb on October 23, 2017, 03:55:28 AM
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.
Title: Re: remotely renaming files using post
Post by: bmartino1 on November 10, 2017, 01:54:20 AM
???

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.