- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Fri, 05 Dec 2025 12:21:53 +0000
- To: XForms <public-xformsusers@w3.org>
https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The_File_Protocol
Seems like this already existed. I have cleaned it up a bit.
One discussion point:
I have implemented POST for files in the following way:
If the resource does not exist, it is created, with the content
surrounded by the tags <post>...</post>.
If it exists, the content is appended before the last closing tag,
if there is one, and otherwise at the end of the file.
(Therefore, if you don't like the tags <post>...</post> when the
file is created,
first PUT an empty file, or one containing only the open and
closing tags, e.g. <data></data>,
before you POST to it.)
This imitates doing an <insert/> to the end of the file.
So if I have a file that contains
<messages></messages>
I can repeatedly POST a <message></message> to it and it just gets added at
the end of the document.
Steven
Received on Friday, 5 December 2025 12:21:59 UTC