Author Topic: remotely renaming files using post  (Read 1035 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, 06:21:47 AM »
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 22, 2017, 09:55:28 PM »
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: 750
  • 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 09, 2017, 07:54:20 PM »
???

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, 10:42:41 AM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1