XPL validation error in xpl : file upload and save local.Windows10 Tomcat and Orbeon

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

XPL validation error in xpl : file upload and save local.Windows10 Tomcat and Orbeon

絹谷弘子
Hello,

I have used orbeon CE for more than 10 years.

I always read mailing list, and I have solved many problems so far, but
this time, I could not.

Therefore, I will post this email to this mailing list.

Recently, I could not access to orbeon temp directory files where I
uploadded using cgi script.

I try to change using cgi to xpl to save from uploaded file to server
side local directory.

I am trying to understand to write XPL, but there is an validation error.

page-flow.xml is as follows.

<controller xmlns="http://www.orbeon.com/oxf/controller">
     <page path="/xforms-hello/" view="view.xhtml"/>
     <page path="/xforms-hello/save" view="save.xpl"/>
     <epilogue url="oxf:/config/epilogue.xpl"/>
</controller>

And I attached view.xhtml, save.xpl and orbeon.log.

I use Tomcat8.5 and orbeon-2018.2.1.201902072242-CE on Windows 10.

How can I upload file and save local directory and fix this problem.

Best regards.

--
絹谷弘子 (Hiroko KINUTANI)
Email: [hidden email]

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

save.xpl (1K) Download Attachment
view.xhtml (3K) Download Attachment
orbeon.log (91K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: XPL validation error in xpl : file upload and save local.Windows10 Tomcat and Orbeon

Alessandro  Vernet
Administrator
Hi Hiroko,

Sorry for the late answer! And welcome as a "poster" in this mailing list
:).

Are you saying that you'd like to have a form with an `xf:upload` field, and
when users select a file, you would like to have that file stored as a
temporary file on your server running Orbeon Forms?

If so, then the good news is that the `xf:upload` does that automatically
for you: just after users select a file, the file is sent to the server, and
in the instance the node bound to the `xf:upload` will contain the URL to
the temporary file. So there really is nothing you need to do to write that
file.

Does this make sense, or did I misunderstand your question?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet