Showing results for 
Search instead for 
Did you mean: 

XML form builder upload from local drive

0 Kudos

hi everybody,

We have built an edit form from xml form builder,

we have a browser field that we use to upload a document (an

attachment) to the RenderListItem form.

We have no problem while trying to attach a file from the KM repository

(we put "/documents/" in the "Start in" property of the browser field).

The problem is that we don't manage to upload a file from a directory of our local hard


Can anyone please help us?

Thank in advance


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


If you want to attach a file before doing that you must upload this file to Portal.

Upload botton only allow you to browse in KM repositories.


Former Member
0 Kudos

another option would be to modify the .xsl stylesheet which is used for the modification of you xml project (not supported, though) and add an ifame which includes the /irj/.../



Answers (1)

Answers (1)

Active Contributor
0 Kudos

Hi Pier,

you can assign some javascript for a button. From this JavaScript you can call a component (your own upload component) in a new popup, which offers the standard HTMLB upload.

Then upload the file, do whatever you want with it, and close the new window.

More or less straight forward, only the JS is a bit tricky.

Here is some example I used 2 years ago, no further documention or help will be provided

javascript:function openit(){'/irj/servlet/prt/portal/prtroot/''&guid='this.document.<NewsObjektName>.XMLFormDataResName.value'&dest=PictureUrl','_blank','left=250,top=250,resizable=Yes,height=100,width=400,scrollbars=No,location=No,menubar=No,status=No,toolbar=No')}if(document.domain.indexOf('.')!=-1)if(document.domain.length-document.domain.indexOf('.')!=3)if(document.domain.length-document.domain.indexOf('.')!=4)document.domain=document.domain.substr(document.domain.indexOf('.')+1);openit();

Hope it helps


PS: Please consider rewarding points on SDN for helpful answers. Thanks in advance!