Author Topic: remotely renaming files using post  (Read 1104 times)

0 Members and 1 Guest are viewing this topic.

Offline shaiol

  • Occasional poster
  • *
  • Posts: 1
    • View Profile
remotely renaming files using post
« on: October 19, 2017, 12:21:47 PM »
How can I remotely rename a file using POST commands ?

Offline skb

  • Experienced poster
  • ***
  • Posts: 43
    • View Profile
Re: remotely renaming files using post
« Reply #1 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.

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 783
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: remotely renaming files using post
« Reply #2 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.
« Last Edit: November 13, 2017, 04:42:41 PM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1