rejetto forum

remotely renaming files using post

shaiol · 3 · 5827

0 Members and 1 Guest are viewing this topic.

Offline shaiol

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
How can I remotely rename a file using POST commands ?


Offline skb

  • Occasional poster
  • *
    • Posts: 50
    • View Profile
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

  • Tireless poster
  • ****
    • Posts: 911
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
???

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 »
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing