Post document to URL

Hi,

I’d like to know if I can create a LibreOffice document with Writer and add a button so that it “posts” not just data within a form but the full document in native format (odt) to a URL.

My goal is to host LibreOffcie Writer template documents on a web server and let web browser clients download these templates. Once the user has finished editing the document he/she should be able to simply click a button within the document which then posts the full document to a PHP script (local URL) which in turn saves the document in a special folder on the server.

I’m just starting to use LO so I don’t know how to do this. It seems that LO can post form data/fields to a remote URL but I don’t know if it can post the full document in odt format.

Thanks in advance.

But I don’t know how to try it. I can see how to send (POST or GET) data within a form but not the full document. It could be as simple as “macro to SAVE file to local disk, get local file name and path, read it and send it via POST to a remote URL”. However, I don’t know how to do that or if there are simpler alternatives.

I am not 100% sure but I think this is possible. Give it a try.
It could be that you use the odt format rather than the ott format because you want others to download the template.