file Action: Post file content that API

hi,
I wanted to post new files that are put in a special directory to a REST API endpoint. I tried to do it when th XMlHttpRequest but the JavaScript interpreter built into Hazel doesn't seem to support it.
Any idea how this could be done otherwise?
Thanks,
Frank
I wanted to post new files that are put in a special directory to a REST API endpoint. I tried to do it when th XMlHttpRequest but the JavaScript interpreter built into Hazel doesn't seem to support it.
Any idea how this could be done otherwise?
Thanks,
Frank