Skip to Content
author's profile photo Former Member
Former Member

How to upload file/image through yforms?

I am Using Hybris 6.3 with Orbeon module installed. Want to upload attachment from yform. file is getting upload succesfully but not getting saved.

alt text

8707-result.png (11.2 kB)
8708-upload.png (10.2 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2017 at 07:21 AM

    You can't save the file directly . But you can convert the data and store it in base64 encoded data in xml . When you are retrieving you have to manually decode the data . Ofcourse this is not feasible solution but its the only solution available that time.

    https://doc.orbeon.com/xforms/controls/upload.html#upload-as-inline-base64-encoded-binary

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2017 at 07:21 AM

    You can't save the file directly . But you can convert the data and store it in base64 encoded data in xml . When you are retrieving you have to manually decode the data . Ofcourse this is not feasible solution but its the only solution available that time.

    https://doc.orbeon.com/xforms/controls/upload.html#upload-as-inline-base64-encoded-binary

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.