Re: [Xsltforms-support] Can't put file to current directory
Brought to you by:
alain-couthures
From: Chester W. <ch...@de...> - 2011-03-31 15:23:17
|
Thanks for the tip. That works, sort of. But it is very clumsy. Is there anything that can be done to ease the security? 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. thanks, chester On Thu, Mar 31, 2011 at 2:30 AM, COUTHURES Alain < ala...@ag...> wrote: > Chester, > > I'm trying to learn xforms and have been going through some of the >> examples in the wiki book. The simple submit example at >> http://en.wikibooks.org/wiki/XForms/Submit that puts a file to the >> current directory does not work on either Firefox or Safari. I'm using the >> example verbatim (adding the xsltforms invocation at the top of the file of >> course) and I've tried changing the form of the filename, using >> action="file:./myData.xml", for example. I've also tried using a >> file:///absolute_pathname and that makes it worse. >> > Please try with just "file://". For security reasons, XSLTForms will always > prompt the user for the folder and name of the file. > > Thanks! > > -Alain > > |