Re: [Xsltforms-support] Can't put file to current directory
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2011-03-31 19:18:34
|
Chester, > Thanks for the tip. That works, sort of. But it is very clumsy. Is > there anything that can be done to ease the security? I think that it is important to let know that a file is about to be read/written in a folder and that it is still possible to abort this. I don't want to include in XSLTForms an applet that would permit anyone to crash a system. > > In this case, there is not really any security issue at all. I'm > loading my xforms page using a file: URL from a local directory, and > using src to pull in instance data from a file in the same directory. > My xforms will modify the data and when I click Submit, I want to > write the modified data out to the same file. Very simple. The user > should not have the opportunity to write it to some other file, as > this could create a lot of confusion. The default behavior is to propose the last file name which was used. You want to change this with your own file name, is it right? It is already possible to enter a full name such as "file://test/myfile.xml" but I don't think it's a recommended notation. This full name will be used to initialize the file dialog box. If so, you could also need to get the chosen fullname from the latest file dialog box. This is not specified in the XForms Recommendation but surely the event() function could be used for that. Would you like me to ask the W3C Forms Work Group about that? Thanks! -Alain |