- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Fri, 28 Nov 2025 12:27:59 +0000
- To: XForms <public-xformsusers@w3.org>
A topic for discussion this week is file reading and writing. File reading and writing is very similar to submission, except that the data comes from/goes to the local machine rather than an external server. I would like to add explicit text to the spec that specifies how it should work: Local files are read and written with a <submission/> where @resource has a scheme of file: such as resource="file:log.xml"; resource="file:data/saved.xml" @method is either GET, PUT, DELETE and possibly POST. @serialization is ignored. @mediatype is likewise ignored. @encoding is honoured. In all cases a dialogue is initiated to allow the user to change the location and/or file name, or cancel the interaction. If the interaction is cancelled, it generates a suitable xforms-submit-error event. Similarly if the file doesn't exist (READ/DELETE) or can't be created (PUT/POST), an xforms-submit-error event is generated. A successful read/write generates a suitable xforms-submit-done event. Steven
Received on Friday, 28 November 2025 12:28:06 UTC