upload document issue

I have configured the Upload Document in one interface and its working fine but when calling that interface in another interface .. Document is not getting Uploaded. Do help out with the code that am missing. Thanks.

label: "Main Site",
labelPosition: "ABOVE",
target: cons!BSI_MainSiteDocument,
value: ri!MSDocument,
saveInto: ri!MSDocument,
validations: {},
buttonstyle: "PRIMARY"

 Discussion posts and replies are publicly visible